X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=instrumentation%2Fsyscalls%2Fheaders%2Fsyscalls_pointers_override.h;h=a24c4d315db2c2c6bfa4c11b938865ae64a90c2b;hb=fa73137a9984cd453fe895cca204f9d73291c1b2;hp=b52b00bceaa7383bd29a2263c633a61bcadfd1f5;hpb=e42e81fd8b5655247a1ed886eab109363c4fc79c;p=lttng-modules.git diff --git a/instrumentation/syscalls/headers/syscalls_pointers_override.h b/instrumentation/syscalls/headers/syscalls_pointers_override.h index b52b00bc..a24c4d31 100644 --- a/instrumentation/syscalls/headers/syscalls_pointers_override.h +++ b/instrumentation/syscalls/headers/syscalls_pointers_override.h @@ -15,4 +15,39 @@ SC_TRACE_EVENT(sys_execve, TP_printk() ) +SC_TRACE_EVENT(sys_clone, + TP_PROTO(unsigned long clone_flags, unsigned long newsp, + void __user *parent_tid, + 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) + __field_hex(void *, parent_tid) + __field_hex(void *, child_tid)), + TP_fast_assign( + tp_assign(clone_flags, clone_flags) + tp_assign(newsp, newsp) + tp_assign(parent_tid, parent_tid) + tp_assign(child_tid, child_tid)), + 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 */