From: Mathieu Desnoyers Date: Mon, 10 May 2021 15:01:02 +0000 (-0400) Subject: Fix: incorrect in/out direction for syscall exit X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4667f7f663bcf3e8ec315fc7965893aeabd64e95;p=lttng-modules.git Fix: incorrect in/out direction for syscall exit Syscall exit should fetch the "sc_out" parameters. This issue was introduced by commit e42c4f49c15b ("Split syscall tracepoint generation in their own files"). Fixes: e42c4f49c15b ("Split syscall tracepoint generation in their own files") Signed-off-by: Mathieu Desnoyers Change-Id: Ib34912005323ea34b6d11ca9acc5edf491649cdd --- diff --git a/src/lttng-syscalls-exit-compat-table.c b/src/lttng-syscalls-exit-compat-table.c index 58fc3275..2ba0c016 100644 --- a/src/lttng-syscalls-exit-compat-table.c +++ b/src/lttng-syscalls-exit-compat-table.c @@ -32,11 +32,11 @@ #define SC_EXIT #undef sc_in -#define sc_in(...) __VA_ARGS__ +#define sc_in(...) #undef sc_out -#define sc_out(...) +#define sc_out(...) __VA_ARGS__ #undef sc_inout -#define sc_inout(...) __VA_ARGS__ +#define sc_inout(...) __VA_ARGS__ #undef sc_exit #define sc_exit(...) __VA_ARGS__ diff --git a/src/lttng-syscalls-exit-table.c b/src/lttng-syscalls-exit-table.c index aaaa331b..8e49b425 100644 --- a/src/lttng-syscalls-exit-table.c +++ b/src/lttng-syscalls-exit-table.c @@ -32,11 +32,11 @@ #define SC_EXIT #undef sc_in -#define sc_in(...) __VA_ARGS__ +#define sc_in(...) #undef sc_out -#define sc_out(...) +#define sc_out(...) __VA_ARGS__ #undef sc_inout -#define sc_inout(...) __VA_ARGS__ +#define sc_inout(...) __VA_ARGS__ #undef sc_exit #define sc_exit(...) __VA_ARGS__