Project

General

Profile

Bug #1184 » 0001-Fix-initialize-syscall-table-when-kernel-tracer-is-l.patch

Fix: initialize syscall table when kernel tracer is lazily initialized - Mathieu Desnoyers, 05/23/2019 12:09 PM

View differences:

src/bin/lttng-sessiond/main.c
}
DBG("Kernel tracer fd %d", kernel_tracer_fd);
ret = syscall_init_table();
if (ret < 0) {
ERR("Unable to populate syscall table. Syscall tracing won't "
"work for this session daemon.");
}
return 0;
error_version:
......
/* Setup kernel tracer */
if (!config.no_kernel) {
init_kernel_tracer();
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.");
}
}
}
/* Set ulimit for open files */
(2-2/2)