lttng-modules ABI: syscall field "enable"
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Sep 2014 18:22:28 +0000 (14:22 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 25 Sep 2014 15:36:07 +0000 (11:36 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/kernel-ctl/kernel-ctl.c
src/common/lttng-kernel.h

index cb487853a3d3a68d5ef73493e1380fa3567d885e..078d8528057efa6afa2d3484a1bb25ec28b9a327 100644 (file)
@@ -147,7 +147,7 @@ int kernctl_enable_syscall(int fd, const char *syscall_name)
        strncpy(event.name, syscall_name, sizeof(event.name));
        event.name[sizeof(event.name) - 1] = '\0';
        event.instrumentation = LTTNG_KERNEL_SYSCALL;
-       event.u.syscall.disable = 0;
+       event.u.syscall.enable = 1;
        return ioctl(fd, LTTNG_KERNEL_EVENT, &event);
 }
 
@@ -159,7 +159,7 @@ int kernctl_disable_syscall(int fd, const char *syscall_name)
        strncpy(event.name, syscall_name, sizeof(event.name));
        event.name[sizeof(event.name) - 1] = '\0';
        event.instrumentation = LTTNG_KERNEL_SYSCALL;
-       event.u.syscall.disable = 1;
+       event.u.syscall.enable = 0;
        return ioctl(fd, LTTNG_KERNEL_EVENT, &event);
 }
 
index a7c9258a73f057c32095d3e6e21849e1d1377f2b..6124920fe8c690ec29c16171f3202d248eae3356 100644 (file)
@@ -98,7 +98,7 @@ struct lttng_kernel_function {
 } LTTNG_PACKED;
 
 struct lttng_kernel_syscall {
-       char disable;
+       char enable;
 } __attribute__((packed));
 
 #define LTTNG_KERNEL_EVENT_PADDING1    16
This page took 0.027148 seconds and 4 git commands to generate.