Fix syscall exit tracing
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 17 Sep 2011 14:00:56 +0000 (10:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 17 Sep 2011 14:00:56 +0000 (10:00 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-syscalls.c

index 13ca7263a693121319a54b9060a283eba0c1799e..682a38759ff787802ff5370b6dace643e64e85f2 100644 (file)
@@ -257,7 +257,8 @@ int lttng_syscalls_register(struct ltt_channel *chan, void *filter)
         * conflict with sys_exit syscall entry.
         */
        ret = tracepoint_probe_register("sys_exit",
-                       (void *) __event_probe__exit_syscall, chan);
+                       (void *) __event_probe__exit_syscall,
+                       chan->sc_unknown);
        if (ret) {
                WARN_ON_ONCE(tracepoint_probe_unregister("sys_enter",
                        (void *) syscall_entry_probe, chan));
@@ -275,7 +276,8 @@ int lttng_syscalls_unregister(struct ltt_channel *chan)
        if (!chan->sc_table)
                return 0;
        ret = tracepoint_probe_unregister("sys_exit",
-                       (void *) __event_probe__exit_syscall, chan);
+                       (void *) __event_probe__exit_syscall,
+                       chan->sc_unknown);
        if (ret)
                return ret;
        ret = tracepoint_probe_unregister("sys_enter",
This page took 0.026455 seconds and 4 git commands to generate.