Add error message if event not found
authorDavid Goulet <david.goulet@polymtl.ca>
Sun, 17 Jul 2011 17:10:44 +0000 (13:10 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Sun, 17 Jul 2011 17:10:44 +0000 (13:10 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng/commands/enable_events.c

index 718e4b3c30b3894d47d20026f4103552c3f0988c..ce8d6024155e6dea7c7a2b696ac60cf521e48fe0 100644 (file)
@@ -193,6 +193,9 @@ static int enable_events(void)
                        switch (opt_event_type) {
                        case LTTNG_EVENT_TRACEPOINTS:
                                ret = lttng_kernel_enable_event(&ev, channel_name);
+                               if (ret < 0) {
+                                       ERR("Unable to find event %s", ev.name);
+                               }
                                break;
                        case LTTNG_EVENT_KPROBES:
                                ret = parse_kprobe_opts(&ev, opt_kprobe);
This page took 0.03374 seconds and 4 git commands to generate.