struct ltt_session;
struct lib_ring_buffer_ctx;
struct perf_event;
+struct perf_event_attr;
/* Type description */
struct lttng_ctx_field {
const char *name;
struct lttng_type type;
- void *ctx_field_callback;
+ void *callback;
union {
struct {
struct perf_event **e; /* per-cpu array */
- struct list_head *head;
+ struct list_head head;
+ struct perf_event_attr *attr;
} perf_counter;
} u;
};
struct lttng_ctx {
- const struct lttng_ctx_field *fields;
+ struct lttng_ctx_field *fields;
unsigned int nr_fields;
unsigned int allocated_fields;
};