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: https://git.lttng.org./?a=commitdiff_plain;h=cc9a657a4c39f85c03e0fcbbbf8ad5c95821ab55;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 caf0a9f35..f43edd9dd 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"); }