Fix: reintroduce lazy kernel modules load, fix empty syscall list
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-syscall.c
index 9a45a8af7933ff232729d344779599887ff9cb41..2a7d1eaa0f026dee3297236df69c406aa0759db6 100644 (file)
@@ -18,7 +18,6 @@
 #define _LGPL_SOURCE
 #include <stdbool.h>
 
-#include <common/bitfield.h>
 #include <common/common.h>
 #include <common/kernel-ctl/kernel-ctl.h>
 
@@ -39,7 +38,7 @@ static size_t syscall_table_nb_entry;
  * Return 0 on success and the syscall table is allocated. On error, a negative
  * value is returned.
  */
-int syscall_init_table(void)
+int syscall_init_table(int tracer_fd)
 {
        int ret, fd, err;
        size_t nbmem;
@@ -52,7 +51,7 @@ int syscall_init_table(void)
 
        DBG3("Syscall init system call table");
 
-       fd = kernctl_syscall_list(kernel_tracer_fd);
+       fd = kernctl_syscall_list(tracer_fd);
        if (fd < 0) {
                ret = fd;
                PERROR("kernelctl syscall list");
This page took 0.023283 seconds and 4 git commands to generate.