From: David Goulet Date: Fri, 5 Sep 2014 16:12:38 +0000 (-0400) Subject: Fix: send disable ALL command code if event is * X-Git-Tag: v2.4.3~51 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=95b3cee3ad8c1094212fb38ac20c8492b1003d7c;p=lttng-tools.git 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 --- diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 4086d61c0..017dd6bba 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -1023,7 +1023,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;