+struct lttng_ctx_field {
+ const char *name;
+ struct lttng_type type;
+ void *ctx_field_callback;
+ union {
+ struct {
+ struct perf_event **e; /* per-cpu array */
+ struct list_head *head;
+ } perf_counter;
+ } u;
+};
+
+struct lttng_ctx {
+ const struct lttng_ctx_field *fields;