syscall tracing: sys_getcpu
[lttng-modules.git] / instrumentation / syscalls / headers / syscalls_pointers_override.h
1 #define OVERRIDE_32_sys_execve
2 #define OVERRIDE_64_sys_execve
3
4 #ifndef CREATE_SYSCALL_TABLE
5
6 SC_TRACE_EVENT(sys_execve,
7 TP_PROTO(const char *filename, char *const *argv, char *const *envp),
8 TP_ARGS(filename, argv, envp),
9 TP_STRUCT__entry(__string_from_user(filename, filename)
10 __field_hex(char *const *, argv)
11 __field_hex(char *const *, envp)),
12 TP_fast_assign(tp_copy_string_from_user(filename, filename)
13 tp_assign(argv, argv)
14 tp_assign(envp, envp)),
15 TP_printk()
16 )
17
18 SC_TRACE_EVENT(sys_clone,
19 TP_PROTO(unsigned long clone_flags, unsigned long newsp,
20 void __user *parent_tid,
21 void __user *child_tid),
22 TP_ARGS(clone_flags, newsp, parent_tid, child_tid),
23 TP_STRUCT__entry(
24 __field_hex(unsigned long, clone_flags)
25 __field_hex(unsigned long, newsp)
26 __field_hex(void *, parent_tid)
27 __field_hex(void *, child_tid)),
28 TP_fast_assign(
29 tp_assign(clone_flags, clone_flags)
30 tp_assign(newsp, newsp)
31 tp_assign(parent_tid, parent_tid)
32 tp_assign(child_tid, child_tid)),
33 TP_printk()
34 )
35
36 /* present in 32, missing in 64 due to old kernel headers */
37 #define OVERRIDE_32_sys_getcpu
38 #define OVERRIDE_64_sys_getcpu
39 SC_TRACE_EVENT(sys_getcpu,
40 TP_PROTO(unsigned __user *cpup, unsigned __user *nodep, void *tcache),
41 TP_ARGS(cpup, nodep, tcache),
42 TP_STRUCT__entry(
43 __field_hex(unsigned *, cpup)
44 __field_hex(unsigned *, nodep)
45 __field_hex(void *, tcache)),
46 TP_fast_assign(
47 tp_assign(cpup, cpup)
48 tp_assign(nodep, nodep)
49 tp_assign(tcache, tcache)),
50 TP_printk()
51 )
52
53 #endif /* CREATE_SYSCALL_TABLE */
This page took 0.033695 seconds and 5 git commands to generate.