From: Mathieu Desnoyers Date: Sat, 17 Sep 2011 14:00:56 +0000 (-0400) Subject: Fix syscall exit tracing X-Git-Tag: v2.0-pre9~43 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2c01ec07427cf19c6ca24305ba8b17a76551192d;p=lttng-modules.git Fix syscall exit tracing Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 13ca7263..682a3875 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -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",