Fix syscall tracing argument input
[lttng-modules.git] / 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.022744 seconds and 4 git commands to generate.