From 75e8c5ab78653b1acf85e9f1cc5ea43c55266517 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 6 Dec 2011 21:50:26 -0500 Subject: [PATCH] Fix enable event -u -a Signed-off-by: Mathieu Desnoyers --- lttng/commands/enable_events.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) { -- 2.34.1