Fix: only initialize syscall table if kernel tracer available
authorDavid Goulet <dgoulet@efficios.com>
Wed, 1 Oct 2014 15:30:15 +0000 (11:30 -0400)
committerDavid 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

index e5054735efd6279aec0fe5648a122dca3f366943..c1e6db1d44fcb5bf564703f9f3cd3df0b28f44f6 100644 (file)
@@ -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.027707 seconds and 4 git commands to generate.