diff options
Diffstat (limited to 'include/linux/syscalls.h')
| -rw-r--r-- | include/linux/syscalls.h | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 207466a49f3d..8126f239edf0 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
| @@ -99,7 +99,7 @@ struct perf_event_attr; | |||
| 99 | #define __SC_TEST5(t5, a5, ...) __SC_TEST(t5); __SC_TEST4(__VA_ARGS__) | 99 | #define __SC_TEST5(t5, a5, ...) __SC_TEST(t5); __SC_TEST4(__VA_ARGS__) | 
| 100 | #define __SC_TEST6(t6, a6, ...) __SC_TEST(t6); __SC_TEST5(__VA_ARGS__) | 100 | #define __SC_TEST6(t6, a6, ...) __SC_TEST(t6); __SC_TEST5(__VA_ARGS__) | 
| 101 | 101 | ||
| 102 | #ifdef CONFIG_EVENT_PROFILE | 102 | #ifdef CONFIG_PERF_EVENTS | 
| 103 | 103 | ||
| 104 | #define TRACE_SYS_ENTER_PROFILE_INIT(sname) \ | 104 | #define TRACE_SYS_ENTER_PROFILE_INIT(sname) \ | 
| 105 | .profile_enable = prof_sysenter_enable, \ | 105 | .profile_enable = prof_sysenter_enable, \ | 
| @@ -113,7 +113,7 @@ struct perf_event_attr; | |||
| 113 | #define TRACE_SYS_ENTER_PROFILE_INIT(sname) | 113 | #define TRACE_SYS_ENTER_PROFILE_INIT(sname) | 
| 114 | #define TRACE_SYS_EXIT_PROFILE(sname) | 114 | #define TRACE_SYS_EXIT_PROFILE(sname) | 
| 115 | #define TRACE_SYS_EXIT_PROFILE_INIT(sname) | 115 | #define TRACE_SYS_EXIT_PROFILE_INIT(sname) | 
| 116 | #endif | 116 | #endif /* CONFIG_PERF_EVENTS */ | 
| 117 | 117 | ||
| 118 | #ifdef CONFIG_FTRACE_SYSCALLS | 118 | #ifdef CONFIG_FTRACE_SYSCALLS | 
| 119 | #define __SC_STR_ADECL1(t, a) #a | 119 | #define __SC_STR_ADECL1(t, a) #a | 
| @@ -132,7 +132,8 @@ struct perf_event_attr; | |||
| 132 | 132 | ||
| 133 | #define SYSCALL_TRACE_ENTER_EVENT(sname) \ | 133 | #define SYSCALL_TRACE_ENTER_EVENT(sname) \ | 
| 134 | static const struct syscall_metadata __syscall_meta_##sname; \ | 134 | static const struct syscall_metadata __syscall_meta_##sname; \ | 
| 135 | static struct ftrace_event_call event_enter_##sname; \ | 135 | static struct ftrace_event_call \ | 
| 136 | __attribute__((__aligned__(4))) event_enter_##sname; \ | ||
| 136 | static struct trace_event enter_syscall_print_##sname = { \ | 137 | static struct trace_event enter_syscall_print_##sname = { \ | 
| 137 | .trace = print_syscall_enter, \ | 138 | .trace = print_syscall_enter, \ | 
| 138 | }; \ | 139 | }; \ | 
| @@ -143,8 +144,7 @@ struct perf_event_attr; | |||
| 143 | .name = "sys_enter"#sname, \ | 144 | .name = "sys_enter"#sname, \ | 
| 144 | .system = "syscalls", \ | 145 | .system = "syscalls", \ | 
| 145 | .event = &enter_syscall_print_##sname, \ | 146 | .event = &enter_syscall_print_##sname, \ | 
| 146 | .raw_init = trace_event_raw_init, \ | 147 | .raw_init = init_syscall_trace, \ | 
| 147 | .show_format = syscall_enter_format, \ | ||
| 148 | .define_fields = syscall_enter_define_fields, \ | 148 | .define_fields = syscall_enter_define_fields, \ | 
| 149 | .regfunc = reg_event_syscall_enter, \ | 149 | .regfunc = reg_event_syscall_enter, \ | 
| 150 | .unregfunc = unreg_event_syscall_enter, \ | 150 | .unregfunc = unreg_event_syscall_enter, \ | 
| @@ -154,7 +154,8 @@ struct perf_event_attr; | |||
| 154 | 154 | ||
| 155 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ | 155 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ | 
| 156 | static const struct syscall_metadata __syscall_meta_##sname; \ | 156 | static const struct syscall_metadata __syscall_meta_##sname; \ | 
| 157 | static struct ftrace_event_call event_exit_##sname; \ | 157 | static struct ftrace_event_call \ | 
| 158 | __attribute__((__aligned__(4))) event_exit_##sname; \ | ||
| 158 | static struct trace_event exit_syscall_print_##sname = { \ | 159 | static struct trace_event exit_syscall_print_##sname = { \ | 
| 159 | .trace = print_syscall_exit, \ | 160 | .trace = print_syscall_exit, \ | 
| 160 | }; \ | 161 | }; \ | 
| @@ -165,8 +166,7 @@ struct perf_event_attr; | |||
| 165 | .name = "sys_exit"#sname, \ | 166 | .name = "sys_exit"#sname, \ | 
| 166 | .system = "syscalls", \ | 167 | .system = "syscalls", \ | 
| 167 | .event = &exit_syscall_print_##sname, \ | 168 | .event = &exit_syscall_print_##sname, \ | 
| 168 | .raw_init = trace_event_raw_init, \ | 169 | .raw_init = init_syscall_trace, \ | 
| 169 | .show_format = syscall_exit_format, \ | ||
| 170 | .define_fields = syscall_exit_define_fields, \ | 170 | .define_fields = syscall_exit_define_fields, \ | 
| 171 | .regfunc = reg_event_syscall_exit, \ | 171 | .regfunc = reg_event_syscall_exit, \ | 
| 172 | .unregfunc = unreg_event_syscall_exit, \ | 172 | .unregfunc = unreg_event_syscall_exit, \ | 
