X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fsyscalls.h;h=a2bb95635633b20857d7002e7650db32e3d57c18;hb=46142a81c9c0cafd313852003df68048d199d0cc;hp=7392e988322bc2593780ca6fd08a8aa7282fa6b8;hpb=ae3dd5f081c58c263e6a70f46546c3b12b3213af;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/syscalls.h b/instrumentation/events/lttng-module/syscalls.h index 7392e988..a2bb9563 100644 --- a/instrumentation/events/lttng-module/syscalls.h +++ b/instrumentation/events/lttng-module/syscalls.h @@ -31,10 +31,13 @@ TRACE_EVENT(sys_enter, TP_fast_assign( tp_assign(id, id) { - unsigned long args_copy[6]; - - syscall_get_arguments(current, regs, 0, 6, args_copy); - tp_memcpy(args, args_copy, 6 * sizeof(args_copy)); + tp_memcpy(args, + ({ + unsigned long args_copy[6]; + syscall_get_arguments(current, regs, + 0, 6, args_copy); + args_copy; + }), 6 * sizeof(unsigned long)); } ), @@ -69,5 +72,5 @@ TRACE_EVENT(sys_exit, #endif /* _TRACE_EVENTS_SYSCALLS_H */ /* This part must be outside protection */ -#include "define_trace.h" +#include "../../../probes/define_trace.h"