Fix: send disable ALL command code if event is *
authorDavid Goulet <dgoulet@efficios.com>
Fri, 5 Sep 2014 16:12:38 +0000 (12:12 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 5 Sep 2014 16:16:48 +0000 (12:16 -0400)
$ 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 <dgoulet@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index 4086d61c0439021d937c32721ae46a744e283274..017dd6bbaf310e2afd7b156c48883a81fb13a461 100644 (file)
@@ -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;
This page took 0.025932 seconds and 4 git commands to generate.