X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=bf00f062482b154695e2579f7c0538537e55854c;hp=5e7821b5b85824755f8c535900d1213c049f9f17;hb=0264ec6ce3555f2d14d609f32cfd9abc2117fa57;hpb=8ae4aa03362d5ce0413d9fc92cac2b96e89d579b diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 5e7821b5..bf00f062 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -211,7 +211,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; @@ -271,6 +271,7 @@ struct lttng_ust_tracepoint_list { }; struct ust_pending_probe; +struct ltt_event; /* * ltt_event structure is referred to by the tracing fast path. It must be @@ -281,7 +282,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 { @@ -401,7 +402,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);