]> git.lttng.org Git - lttngtop.git/commitdiff
all events
authorJulien Desfossez <jdesfossez@efficios.com>
Wed, 15 Aug 2012 23:26:05 +0000 (19:26 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Wed, 15 Aug 2012 23:26:05 +0000 (19:26 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/lttngtop.c

index 40907e40635f57384d3b39e97f4fd6e3c4ce8b00..334f967398d1a2c44da6aebc2b6a38d6b5d8314c 100644 (file)
@@ -883,16 +883,18 @@ void *setup_live_tracing()
        chan.attr.output = LTTNG_EVENT_MMAP;
 
        if ((ret = lttng_enable_channel(handle, &chan)) < 0) {
-               fprintf(stderr,"error creating channel : %s\n", helper_lttcomm_get_readable_code(ret));
+               fprintf(stderr,"error creating channel : %s\n",
+                               helper_lttcomm_get_readable_code(ret));
                goto end;
        }
 
-       sprintf(ev.name, "sched_switch");
+       memset(&ev, '\0', sizeof(struct lttng_event));
+       //sprintf(ev.name, "sched_switch");
        ev.type = LTTNG_EVENT_TRACEPOINT;
 
-       //if ((ret = lttng_enable_event(handle, NULL, channel_name)) < 0) {
        if ((ret = lttng_enable_event(handle, &ev, channel_name)) < 0) {
-               fprintf(stderr,"error enabling event : %s\n", helper_lttcomm_get_readable_code(ret));
+               fprintf(stderr,"error enabling event : %s\n",
+                               helper_lttcomm_get_readable_code(ret));
                goto end;
        }
 
@@ -906,7 +908,8 @@ void *setup_live_tracing()
        lttng_add_context(handle, &kctxtid, NULL, NULL);
 
        if ((ret = lttng_start_tracing("test")) < 0) {
-               fprintf(stderr,"error starting tracing : %s\n", helper_lttcomm_get_readable_code(ret));
+               fprintf(stderr,"error starting tracing : %s\n",
+                               helper_lttcomm_get_readable_code(ret));
                goto end;
        }
 
This page took 0.026835 seconds and 4 git commands to generate.