From: Mathieu Desnoyers Date: Wed, 7 Dec 2011 02:50:26 +0000 (-0500) Subject: Fix enable event -u -a X-Git-Tag: v2.0-pre15~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=75e8c5ab78653b1acf85e9f1cc5ea43c55266517;p=lttng-tools.git Fix enable event -u -a Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng/commands/enable_events.c b/lttng/commands/enable_events.c index 7df849e73..3c1c3916e 100644 --- a/lttng/commands/enable_events.c +++ b/lttng/commands/enable_events.c @@ -241,8 +241,14 @@ static int enable_events(char *session_name) if (opt_enable_all) { /* Default setup for enable all */ - ev.name[0] = '\0'; - ev.type = opt_event_type; + + if (opt_kernel) { + ev.type = opt_event_type; + ev.name[0] = '\0'; + } else { + ev.type = LTTNG_EVENT_TRACEPOINT; + strcpy(ev.name, "*"); + } ret = lttng_enable_event(handle, &ev, channel_name); if (ret < 0) {