From: David Goulet Date: Wed, 14 May 2014 15:27:00 +0000 (-0400) Subject: Fix: handle ENOENT when creating a kernel event X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=8197a3393bc0cfcc6f3cf75426535cf0b10a506b Fix: handle ENOENT when creating a kernel event The kernel tracer returns ENOENT if an event is not found thus warn the user of that. Fixes #761 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index faf35cc7f..44a71fc59 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -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"); }