projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c68fda4
)
Fix: handle ENOENT when creating a kernel event
author
David Goulet
<dgoulet@efficios.com>
Wed, 14 May 2014 15:27:00 +0000
(11:27 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Wed, 14 May 2014 15:28:29 +0000
(11:28 -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
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-sessiond/kernel.c
b/src/bin/lttng-sessiond/kernel.c
index faf35cc7fc8f8a42c927325a15a161bd69215148..44a71fc595de1427682bf84b19991bf0725da1bd 100644
(file)
--- 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");
}
This page took
0.027384 seconds
and
4
git commands to generate.