From: David Goulet Date: Wed, 1 Oct 2014 15:30:15 +0000 (-0400) Subject: Fix: only initialize syscall table if kernel tracer available X-Git-Tag: v2.6.0-rc1~24 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=89588270089b3c4ae5ef4291cdd87960e5d3d297 Fix: only initialize syscall table if kernel tracer available Fixes #844 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index e5054735e..c1e6db1d4 100644 --- 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."); + } } }