From: Mathieu Desnoyers Date: Wed, 1 Jun 2011 22:59:45 +0000 (-0400) Subject: Fix syscall tracing argument input X-Git-Tag: v2.0-pre1~67 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=8b849768eb60b4822725018261eebd7f67c454b2;p=lttng-modules.git Fix syscall tracing argument input The probe code was jumping over the argument read. Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/syscalls.h b/instrumentation/events/lttng-module/syscalls.h index 182be763..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, 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)); } ),