syscall tracing: sys_getcpu
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Feb 2012 03:13:43 +0000 (22:13 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Feb 2012 03:13:43 +0000 (22:13 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/syscalls/headers/syscalls_pointers_override.h
instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_pointers_override.h
instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers_override.h

index f268ce16fabfd3e2bf008e932c413b67bf729374..a24c4d315db2c2c6bfa4c11b938865ae64a90c2b 100644 (file)
@@ -18,9 +18,8 @@ SC_TRACE_EVENT(sys_execve,
 SC_TRACE_EVENT(sys_clone,
        TP_PROTO(unsigned long clone_flags, unsigned long newsp,
                void __user *parent_tid,
-               void __user *child_tid,
-               struct pt_regs *regs),
-       TP_ARGS(clone_flags, newsp, parent_tid, child_tid, regs),
+               void __user *child_tid),
+       TP_ARGS(clone_flags, newsp, parent_tid, child_tid),
        TP_STRUCT__entry(
                __field_hex(unsigned long, clone_flags)
                __field_hex(unsigned long, newsp)
@@ -34,4 +33,21 @@ SC_TRACE_EVENT(sys_clone,
        TP_printk()
 )
 
+/* present in 32, missing in 64 due to old kernel headers */
+#define OVERRIDE_32_sys_getcpu
+#define OVERRIDE_64_sys_getcpu
+SC_TRACE_EVENT(sys_getcpu,
+       TP_PROTO(unsigned __user *cpup, unsigned __user *nodep, void *tcache),
+       TP_ARGS(cpup, nodep, tcache),
+       TP_STRUCT__entry(
+               __field_hex(unsigned *, cpup)
+               __field_hex(unsigned *, nodep)
+               __field_hex(void *, tcache)),
+       TP_fast_assign(
+               tp_assign(cpup, cpup)
+               tp_assign(nodep, nodep)
+               tp_assign(tcache, tcache)),
+       TP_printk()
+)
+
 #endif /* CREATE_SYSCALL_TABLE */
index 9d6d7af89ce263a2ffaac4e47527e1ebf0dfa133..4ee3ca3d2c2ccdd6c38c76a5aa5d343d348c1b95 100644 (file)
@@ -25,6 +25,8 @@
 TRACE_SYSCALL_TABLE(sys_execve, sys_execve, 11, 3)
 #define OVERRIDE_TABLE_32_sys_clone
 TRACE_SYSCALL_TABLE(sys_clone, sys_clone, 120, 5)
+#define OVERRIDE_TABLE_32_sys_getcpu
+TRACE_SYSCALL_TABLE(sys_getcpu, sys_getcpu, 318, 3)
 
 #endif /* CREATE_SYSCALL_TABLE */
 
index b6b853fd79011d1ea03d978c7775069b8f54a22e..8aa2abcb4694a01e1048da7b07a08c5a2e481716 100644 (file)
@@ -6,5 +6,7 @@
 TRACE_SYSCALL_TABLE(sys_clone, sys_clone, 56, 5)
 #define OVERRIDE_TABLE_64_sys_execve
 TRACE_SYSCALL_TABLE(sys_execve, sys_execve, 59, 3)
+#define OVERRIDE_TABLE_64_sys_getcpu
+TRACE_SYSCALL_TABLE(sys_getcpu, sys_getcpu, 309, 3)
 
 #endif /* CREATE_SYSCALL_TABLE */
This page took 0.027631 seconds and 4 git commands to generate.