Fix: handle ENOENT when creating a kernel event
authorDavid Goulet <dgoulet@efficios.com>
Wed, 14 May 2014 15:27:00 +0000 (11:27 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 14 May 2014 15:28:29 +0000 (11:28 -0400)
The kernel tracer returns ENOENT if an event is not found thus warn the
user of that.

Fixes #761

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/kernel.c

index faf35cc7fc8f8a42c927325a15a161bd69215148..44a71fc595de1427682bf84b19991bf0725da1bd 100644 (file)
@@ -201,6 +201,9 @@ int kernel_create_event(struct lttng_event *ev,
                case ENOSYS:
                        WARN("Event type not implemented");
                        break;
+               case ENOENT:
+                       WARN("Event %s not found!", ev->name);
+                       break;
                default:
                        PERROR("create event ioctl");
                }
This page took 0.027384 seconds and 4 git commands to generate.