From: Mathieu Desnoyers Date: Fri, 12 Sep 2014 18:20:39 +0000 (-0400) Subject: ABI: use enable a syscall ABI field name X-Git-Tag: v2.6.0-rc1~32 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4ee2453d2c98e91692d03f1fa77df6d3b26d13de;p=lttng-modules.git ABI: use enable a syscall ABI field name Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-abi.c b/lttng-abi.c index ab0a1128..41e5e450 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -968,14 +968,15 @@ int lttng_abi_create_event(struct file *channel_file, if (ret) goto fd_error; event_fd = 0; - if (event_param->u.syscall.disable) { - ret = lttng_syscall_filter_disable(channel, + if (event_param->u.syscall.enable) { + ret = lttng_syscall_filter_enable(channel, event_param->name[0] == '\0' ? NULL : event_param->name); if (ret) goto fd_error; + } else { - ret = lttng_syscall_filter_enable(channel, + ret = lttng_syscall_filter_disable(channel, event_param->name[0] == '\0' ? NULL : event_param->name); if (ret) diff --git a/lttng-abi.h b/lttng-abi.h index 27943579..c59b8c6f 100644 --- a/lttng-abi.h +++ b/lttng-abi.h @@ -80,7 +80,7 @@ struct lttng_kernel_function_tracer { }__attribute__((packed)); struct lttng_kernel_syscall { - char disable; + char enable; } __attribute__((packed)); /*