X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent.c;h=125adb9a058bf4fdedac31a1daaeaa02733c26c5;hp=c7768a547bf83e2d9e33450de1fe2362b2a5a0ec;hb=2b00d46244cab86f1186a7b00cdc660f24a26f72;hpb=763f0d4cef1438d3f1f5f5c5a232d72628bca550 diff --git a/src/bin/lttng-sessiond/event.c b/src/bin/lttng-sessiond/event.c index c7768a547..125adb9a0 100644 --- a/src/bin/lttng-sessiond/event.c +++ b/src/bin/lttng-sessiond/event.c @@ -48,7 +48,7 @@ static void add_unique_ust_event(struct lttng_ht *ht, assert(event); key.name = event->attr.name; - key.filter = (struct lttng_filter_bytecode *) event->filter; + key.filter = (struct lttng_bytecode *) event->filter; key.loglevel_type = event->attr.loglevel_type; key.loglevel_value = event->attr.loglevel; key.exclusion = event->exclusion; @@ -105,7 +105,7 @@ int event_kernel_disable_event(struct ltt_kernel_channel *kchan, */ int event_kernel_enable_event(struct ltt_kernel_channel *kchan, struct lttng_event *event, char *filter_expression, - struct lttng_filter_bytecode *filter) + struct lttng_bytecode *filter) { int ret; struct ltt_kernel_event *kevent; @@ -155,7 +155,7 @@ end: int event_ust_enable_tracepoint(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan, struct lttng_event *event, char *filter_expression, - struct lttng_filter_bytecode *filter, + struct lttng_bytecode *filter, struct lttng_event_exclusion *exclusion, bool internal_event) { @@ -393,7 +393,7 @@ static void agent_enable_all(struct agent *agt) */ int event_agent_enable_all(struct ltt_ust_session *usess, struct agent *agt, struct lttng_event *event, - struct lttng_filter_bytecode *filter ,char *filter_expression) + struct lttng_bytecode *filter ,char *filter_expression) { int ret; @@ -422,7 +422,7 @@ error: * contexts yet. Not an issue for now, since they are not generated by * the lttng-ctl library. */ -static int add_filter_app_ctx(struct lttng_filter_bytecode *bytecode, +static int add_filter_app_ctx(struct lttng_bytecode *bytecode, const char *filter_expression, struct agent *agt) { int ret = LTTNG_OK; @@ -481,7 +481,7 @@ end: static int agent_enable(struct agent *agt, struct lttng_event *event, - struct lttng_filter_bytecode *filter, + struct lttng_bytecode *filter, char *filter_expression) { int ret, created = 0; @@ -551,7 +551,7 @@ end: int event_agent_enable(struct ltt_ust_session *usess, struct agent *agt, struct lttng_event *event, - struct lttng_filter_bytecode *filter, + struct lttng_bytecode *filter, char *filter_expression) { assert(usess); @@ -581,8 +581,8 @@ int trigger_agent_enable(const struct lttng_trigger *trigger, struct agent *agt) const struct lttng_event_rule *rule; const char *filter_expression; char *filter_expression_copy = NULL; - const struct lttng_filter_bytecode *filter_bytecode; - struct lttng_filter_bytecode *filter_bytecode_copy = NULL; + const struct lttng_bytecode *filter_bytecode; + struct lttng_bytecode *filter_bytecode_copy = NULL; struct lttng_event *event = NULL; uid_t trigger_owner_uid = 0; const char *trigger_name; @@ -631,7 +631,7 @@ int trigger_agent_enable(const struct lttng_trigger *trigger, struct agent *agt) filter_bytecode = lttng_event_rule_get_filter_bytecode(rule); if (filter_bytecode) { filter_bytecode_copy = - lttng_filter_bytecode_copy(filter_bytecode); + lttng_bytecode_copy(filter_bytecode); if (!filter_bytecode_copy) { ret = LTTNG_ERR_NOMEM; goto end;