X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-filter.c;h=e9774b489acfe4672270cbd1ff952827f9292558;hb=d871c65bcb2e94c69e0a46e7e0dcd2dae2fce7af;hp=7dbe6f26e85c38667e872b7da94064ea06c94555;hpb=e450e3396b0bfe998e3bde6aef7dc3b4232f8edb;p=lttng-ust.git diff --git a/liblttng-ust/lttng-filter.c b/liblttng-ust/lttng-filter.c index 7dbe6f26..e9774b48 100644 --- a/liblttng-ust/lttng-filter.c +++ b/liblttng-ust/lttng-filter.c @@ -31,6 +31,7 @@ #include #include "lttng-filter.h" +#include "ust-events-internal.h" static const char *opnames[] = { [ FILTER_OP_UNKNOWN ] = "UNKNOWN", @@ -508,17 +509,18 @@ void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime) /* * Link bytecode for all enablers referenced by an event. */ -void lttng_enabler_event_link_bytecode(struct lttng_event *event, - struct lttng_enabler *enabler) +void lttng_event_enabler_link_bytecode(struct lttng_event *event, + struct lttng_event_enabler *event_enabler) { struct lttng_ust_filter_bytecode_node *bc; struct lttng_bytecode_runtime *runtime; + struct lttng_enabler *base_enabler = lttng_event_enabler_as_enabler(event_enabler); /* Can only be called for events with desc attached */ assert(event->desc); /* Link each bytecode. */ - cds_list_for_each_entry(bc, &enabler->filter_bytecode_head, node) { + cds_list_for_each_entry(bc, &base_enabler->filter_bytecode_head, node) { int found = 0, ret; struct cds_list_head *insert_loc;