From: Mathieu Desnoyers Date: Fri, 12 Sep 2014 18:22:28 +0000 (-0400) Subject: lttng-modules ABI: syscall field "enable" X-Git-Tag: v2.6.0-rc1~40 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=562ab9a8448207679ce90cbe43f97976dcf25671 lttng-modules ABI: syscall field "enable" Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index cb487853a..078d85280 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -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); } diff --git a/src/common/lttng-kernel.h b/src/common/lttng-kernel.h index a7c9258a7..6124920fe 100644 --- a/src/common/lttng-kernel.h +++ b/src/common/lttng-kernel.h @@ -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