ABI: use enable a syscall ABI field name
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Sep 2014 18:20:39 +0000 (14:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Sep 2014 16:10:00 +0000 (12:10 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-abi.c
lttng-abi.h

index ab0a11286c7ba75f423e430085b616c0df4e76b0..41e5e450b61babc1cda9d18a3b0594c417df1b66 100644 (file)
@@ -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)
index 279435792fa0a50e4b944caeda3c3a8af1a146aa..c59b8c6fd895e37c11534e2a3e4a0518253b4e06 100644 (file)
@@ -80,7 +80,7 @@ struct lttng_kernel_function_tracer {
 }__attribute__((packed));
 
 struct lttng_kernel_syscall {
-       char disable;
+       char enable;
 } __attribute__((packed));
 
 /*
This page took 0.028907 seconds and 4 git commands to generate.