X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=5edfbb99f88019565669adaf735cefa2e6cc3b12;hb=fbdeb5ecb8ff9b7d73a72de9fc66d07f7797d93f;hp=da7a2299f055ec45ae7cd88c909b581536c65f15;hpb=4d3b06fe77725f267b85502dbeb51991296b9389;p=lttng-ust.git diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index da7a2299..5edfbb99 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -212,7 +212,7 @@ struct lttng_ctx { #define LTTNG_UST_EVENT_DESC_PADDING 40 struct lttng_event_desc { const char *name; - void *probe_callback; + void (*probe_callback)(void); const struct lttng_event_ctx *ctx; /* context */ const struct lttng_event_field *fields; /* event payload */ unsigned int nr_fields; @@ -282,6 +282,7 @@ struct lttng_ust_field_list { }; struct ust_pending_probe; +struct ltt_event; /* * ltt_event structure is referred to by the tracing fast path. It must be @@ -292,7 +293,7 @@ struct ltt_event { struct ltt_channel *chan; int enabled; const struct lttng_event_desc *desc; - void *filter; + void (*filter)(struct ltt_event *event); struct lttng_ctx *ctx; enum lttng_ust_instrumentation instrumentation; union { @@ -412,7 +413,7 @@ struct ltt_channel *ltt_global_channel_create(struct ltt_session *session, int ltt_event_create(struct ltt_channel *chan, struct lttng_ust_event *event_param, - void *filter, + void (*filter)(struct ltt_event *event), struct ltt_event **event); int ltt_channel_enable(struct ltt_channel *channel);