From: Mathieu Desnoyers Date: Thu, 26 May 2011 01:21:05 +0000 (-0400) Subject: Fix too large copy of sys enter event X-Git-Tag: v2.0-pre1~82 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=a4f033f45234cd591caa23c4f37d74520c558e46;p=lttng-modules.git Fix too large copy of sys enter event Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/syscalls.h b/instrumentation/events/lttng-module/syscalls.h index e2f3bbd5..182be763 100644 --- a/instrumentation/events/lttng-module/syscalls.h +++ b/instrumentation/events/lttng-module/syscalls.h @@ -34,7 +34,7 @@ TRACE_EVENT(sys_enter, 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, args_copy, sizeof(args_copy)); } ),