From: Jonathan Rajotte Date: Thu, 10 Sep 2015 20:10:56 +0000 (-0400) Subject: Fix: disable all ust events X-Git-Tag: v2.6.1~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b05fa71201e79ce02e0862847cc4645dee5d2b0f;p=lttng-tools.git Fix: disable all ust events Handle * event correctly. Fixes #936 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 766a138cb..606b9d9f6 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1137,7 +1137,14 @@ int cmd_disable_event(struct ltt_session *session, int domain, switch (event->type) { case LTTNG_EVENT_ALL: - ret = event_ust_disable_tracepoint(usess, uchan, event_name); + if (strlen(event->name) == 1 && + !strncmp(event->name, "*", 1)) { + ret = event_ust_disable_all_tracepoints(usess, + uchan); + } else { + ret = event_ust_disable_tracepoint(usess, uchan, + event_name); + } if (ret != LTTNG_OK) { goto error; }