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:
adf4e91
)
Fix: only initialize syscall table if kernel tracer available
author
David Goulet
<dgoulet@efficios.com>
Wed, 1 Oct 2014 15:30:15 +0000
(11:30 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Wed, 1 Oct 2014 15:30:15 +0000
(11:30 -0400)
Fixes #844
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index e5054735efd6279aec0fe5648a122dca3f366943..c1e6db1d44fcb5bf564703f9f3cd3df0b28f44f6 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-5230,10
+5230,12
@@
int main(int argc, char **argv)
/* Setup kernel tracer */
if (!opt_no_kernel) {
init_kernel_tracer();
- ret = syscall_init_table();
- if (ret < 0) {
- ERR("Unable to populate syscall table. Syscall tracing won't"
- " work for this session daemon.");
+ if (kernel_tracer_fd >= 0) {
+ ret = syscall_init_table();
+ if (ret < 0) {
+ ERR("Unable to populate syscall table. Syscall tracing"
+ " won't work for this session daemon.");
+ }
}
}
This page took
0.028349 seconds
and
4
git commands to generate.