Fix syscall tracing argument input
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 1 Jun 2011 22:59:45 +0000 (18:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 1 Jun 2011 22:59:45 +0000 (18:59 -0400)
The probe code was jumping over the argument read.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/syscalls.h

index 182be76340648e58610748915442f2d687392925..a2bb95635633b20857d7002e7650db32e3d57c18 100644 (file)
@@ -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));
                }
        ),
 
This page took 0.0264 seconds and 4 git commands to generate.