From: JP Ikaheimonen Date: Mon, 4 Nov 2013 12:47:20 +0000 (+0200) Subject: Add exclusions to event_ust_enable_tracepoint X-Git-Tag: v2.4.0-rc1~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f1613f52941de629d913f7945cac7447d164728a;p=lttng-tools.git Add exclusions to event_ust_enable_tracepoint Add exclusion data to prototype of event_ust_enable_tracepoint() --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index dca4859e6..69dfda6a3 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1421,7 +1421,7 @@ int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain, } /* At this point, the session and channel exist on the tracer */ - ret = event_ust_enable_tracepoint(usess, uchan, event, filter); + ret = event_ust_enable_tracepoint(usess, uchan, event, filter, exclusion); if (ret != LTTNG_OK) { goto error; } diff --git a/src/bin/lttng-sessiond/event.c b/src/bin/lttng-sessiond/event.c index f22b81282..791251e7d 100644 --- a/src/bin/lttng-sessiond/event.c +++ b/src/bin/lttng-sessiond/event.c @@ -408,7 +408,8 @@ error: */ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan, struct lttng_event *event, - struct lttng_filter_bytecode *filter) + struct lttng_filter_bytecode *filter, + struct lttng_event_exclusion *exclusion) { int ret = LTTNG_OK, to_create = 0; struct ltt_ust_event *uevent; diff --git a/src/bin/lttng-sessiond/event.h b/src/bin/lttng-sessiond/event.h index 1b92a6a7f..dba226654 100644 --- a/src/bin/lttng-sessiond/event.h +++ b/src/bin/lttng-sessiond/event.h @@ -37,7 +37,8 @@ int event_kernel_enable_all(struct ltt_kernel_channel *kchan, int event_ust_enable_tracepoint(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan, struct lttng_event *event, - struct lttng_filter_bytecode *filter); + struct lttng_filter_bytecode *filter, + struct lttng_event_exclusion *exclusion); int event_ust_disable_tracepoint(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan, char *event_name); int event_ust_enable_all_tracepoints(struct ltt_ust_session *usess,