From 6565421fd1e3307cda0f3cb0f849cb990122edc7 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 26 Nov 2013 10:10:20 -0500 Subject: [PATCH] Fix: set the enable all event command type This was removed by mistake with the exclusion patch set. Signed-off-by: David Goulet --- src/lib/lttng-ctl/lttng-ctl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 222d719f8..3f6635e8f 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -733,9 +733,13 @@ int lttng_enable_event_with_exclusions(struct lttng_handle *handle, sizeof(lsm.u.enable.channel_name)); } - lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain); - lsm.cmd_type = LTTNG_ENABLE_EVENT; + if (ev->name[0] != '\0') { + lsm.cmd_type = LTTNG_ENABLE_EVENT; + } else { + lsm.cmd_type = LTTNG_ENABLE_ALL_EVENT; + } + lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain); memcpy(&lsm.u.enable.event, ev, sizeof(lsm.u.enable.event)); lttng_ctl_copy_string(lsm.session.name, handle->session_name, -- 2.34.1