From: Jonathan Rajotte Date: Thu, 10 Sep 2015 20:10:56 +0000 (-0400) Subject: Fix: disable all ust events X-Git-Tag: v2.7.0-rc2~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8bee8347c596eb567bf279010223acb601120f15;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 cebe00169..660cd0ca8 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1284,7 +1284,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_unlock; }