X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=41e5e450b61babc1cda9d18a3b0594c417df1b66;hb=4ee2453d2c98e91692d03f1fa77df6d3b26d13de;hp=ab0a11286c7ba75f423e430085b616c0df4e76b0;hpb=2d2464bd8910c4c8a090675338159f6642c83f41;p=lttng-modules.git 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)