X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=91d5839bfa6c1386ea13f9160207e7c27413be3e;hb=1ddfd6412d2a160eb5b8e97ebbfd0a9dbc88faa0;hp=5edfbb99f88019565669adaf735cefa2e6cc3b12;hpb=d71b57b9079172d8d835ae082087feb57991201f;p=deliverable%2Flttng-ust.git diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 5edfbb99..91d5839b 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -293,7 +293,8 @@ struct ltt_event { struct ltt_channel *chan; int enabled; const struct lttng_event_desc *desc; - void (*filter)(struct ltt_event *event); + int (*filter)(void *filter_data, const char *filter_stack_data); + void *filter_data; struct lttng_ctx *ctx; enum lttng_ust_instrumentation instrumentation; union { @@ -413,7 +414,9 @@ 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)(struct ltt_event *event), + int (*filter)(void *filter_data, + const char *filter_stack_data), + void *filter_data, struct ltt_event **event); int ltt_channel_enable(struct ltt_channel *channel);