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:30:42 +0000 (11:30 -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 caf0a9f35ddc19c4eb5bc01a446cdf1f2ae4d024..f43edd9dd506b1909a763fe63d2df9616611bac4 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.025654 seconds and 4 git commands to generate.