Filter: prepare filter stack data
[lttng-ust.git] / include / lttng / ust-events.h
index 5edfbb99f88019565669adaf735cefa2e6cc3b12..91d5839bfa6c1386ea13f9160207e7c27413be3e 100644 (file)
@@ -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);
This page took 0.02382 seconds and 4 git commands to generate.