[lttng-dev] [PATCH lttng-tools 04/28] Add exclusions to event_ust_enable_tracepoint
JP Ikaheimonen
jp_ikaheimonen at mentor.com
Thu Nov 7 05:19:26 EST 2013
Add exclusion data to prototype of event_ust_enable_tracepoint()
Signed-off-by: JP Ikaheimonen <jp_ikaheimonen at mentor.com>
---
src/bin/lttng-sessiond/cmd.c | 2 +-
src/bin/lttng-sessiond/event.c | 3 ++-
src/bin/lttng-sessiond/event.h | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c
index dca4859..69dfda6 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 f22b812..791251e 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 1b92a6a..dba2266 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,
--
1.8.1.2
More information about the lttng-dev
mailing list