X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-events.h;h=45d459d47f39af0187763a38d75e5283652f1987;hb=0d1a681e2c2521edea85e8748c7be35a60c73155;hp=1419fb67219e047c6125ebf9af4183a7c8bc0a51;hpb=acd614cc4d30407efd46a528e29dadb403d25ffb;p=lttng-modules.git diff --git a/ltt-events.h b/ltt-events.h index 1419fb67..45d459d4 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -112,10 +112,16 @@ struct lttng_event_field { struct lttng_type type; }; -struct lttng_event_desc { +struct lttng_event_ctx { const struct lttng_event_field *fields; + unsigned int nr_fields; +}; + +struct lttng_event_desc { const char *name; void *probe_callback; + const struct lttng_event_ctx *ctx; /* context */ + const struct lttng_event_field *fields; /* event payload */ unsigned int nr_fields; };