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:
57d3d37
)
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: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
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-sessiond/kernel.c
b/src/bin/lttng-sessiond/kernel.c
index caf0a9f35ddc19c4eb5bc01a446cdf1f2ae4d024..f43edd9dd506b1909a763fe63d2df9616611bac4 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.025654 seconds
and
4
git commands to generate.