Fix enable event -u -a
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Dec 2011 02:50:26 +0000 (21:50 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Dec 2011 02:50:26 +0000 (21:50 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng/commands/enable_events.c

index 7df849e73b88d9593575a68fe59d2722283e1aaa..3c1c3916e0344a48098fe92e4c771201c356f7a0 100644 (file)
@@ -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) {
This page took 0.034062 seconds and 4 git commands to generate.