From 562ab9a8448207679ce90cbe43f97976dcf25671 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 12 Sep 2014 14:22:28 -0400 Subject: [PATCH] lttng-modules ABI: syscall field "enable" Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- src/common/kernel-ctl/kernel-ctl.c | 4 ++-- src/common/lttng-kernel.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.34.1