From a5f384aac4e2dca9992fa3758db02b3f17f0f55c Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 5 Sep 2014 12:12:38 -0400 Subject: [PATCH] Fix: send disable ALL command code if event is * $ lttng disable-event -a and $ lttng disable-event '*' Both commands should do the same meaning send the DISABLE_EVENT_ALL command to the session daemon. Signed-off-by: David Goulet --- src/lib/lttng-ctl/lttng-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index acf894e41..23b84db4f 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -1056,7 +1056,7 @@ int lttng_disable_event(struct lttng_handle *handle, const char *name, lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain); - if (name != NULL) { + if (name != NULL && *name != '*') { lttng_ctl_copy_string(lsm.u.disable.name, name, sizeof(lsm.u.disable.name)); lsm.cmd_type = LTTNG_DISABLE_EVENT; -- 2.34.1