From: David Goulet Date: Wed, 14 May 2014 15:27:00 +0000 (-0400) Subject: Fix: handle ENOENT when creating a kernel event X-Git-Tag: v2.5.0-rc1~42 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8197a3393bc0cfcc6f3cf75426535cf0b10a506b;p=lttng-tools.git 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"); }