diff options
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 2f7c539ab96d..d3c9fd01a110 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -153,6 +153,7 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \ | |||
153 | #define __SC_STR_TDECL6(t, a, ...) #t, __SC_STR_TDECL5(__VA_ARGS__) | 153 | #define __SC_STR_TDECL6(t, a, ...) #t, __SC_STR_TDECL5(__VA_ARGS__) |
154 | 154 | ||
155 | #define SYSCALL_TRACE_ENTER_EVENT(sname) \ | 155 | #define SYSCALL_TRACE_ENTER_EVENT(sname) \ |
156 | static const struct syscall_metadata __syscall_meta_##sname; \ | ||
156 | static struct ftrace_event_call event_enter_##sname; \ | 157 | static struct ftrace_event_call event_enter_##sname; \ |
157 | struct trace_event enter_syscall_print_##sname = { \ | 158 | struct trace_event enter_syscall_print_##sname = { \ |
158 | .trace = print_syscall_enter, \ | 159 | .trace = print_syscall_enter, \ |
@@ -184,11 +185,12 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \ | |||
184 | .define_fields = syscall_enter_define_fields, \ | 185 | .define_fields = syscall_enter_define_fields, \ |
185 | .regfunc = reg_event_syscall_enter, \ | 186 | .regfunc = reg_event_syscall_enter, \ |
186 | .unregfunc = unreg_event_syscall_enter, \ | 187 | .unregfunc = unreg_event_syscall_enter, \ |
187 | .data = "sys"#sname, \ | 188 | .data = (void *)&__syscall_meta_##sname,\ |
188 | TRACE_SYS_ENTER_PROFILE_INIT(sname) \ | 189 | TRACE_SYS_ENTER_PROFILE_INIT(sname) \ |
189 | } | 190 | } |
190 | 191 | ||
191 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ | 192 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ |
193 | static const struct syscall_metadata __syscall_meta_##sname; \ | ||
192 | static struct ftrace_event_call event_exit_##sname; \ | 194 | static struct ftrace_event_call event_exit_##sname; \ |
193 | struct trace_event exit_syscall_print_##sname = { \ | 195 | struct trace_event exit_syscall_print_##sname = { \ |
194 | .trace = print_syscall_exit, \ | 196 | .trace = print_syscall_exit, \ |
@@ -220,7 +222,7 @@ static void prof_sysexit_disable_##sname(struct ftrace_event_call *unused) \ | |||
220 | .define_fields = syscall_exit_define_fields, \ | 222 | .define_fields = syscall_exit_define_fields, \ |
221 | .regfunc = reg_event_syscall_exit, \ | 223 | .regfunc = reg_event_syscall_exit, \ |
222 | .unregfunc = unreg_event_syscall_exit, \ | 224 | .unregfunc = unreg_event_syscall_exit, \ |
223 | .data = "sys"#sname, \ | 225 | .data = (void *)&__syscall_meta_##sname,\ |
224 | TRACE_SYS_EXIT_PROFILE_INIT(sname) \ | 226 | TRACE_SYS_EXIT_PROFILE_INIT(sname) \ |
225 | } | 227 | } |
226 | 228 | ||