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.4.2~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8d1f6cfc3ef64418371e77d0b82b0e81b559cf50;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"); }