diff options
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 2d9b79c0f224..4acc6b6088b0 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -133,11 +133,11 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
133 | .class = &event_class_syscall_enter, \ | 133 | .class = &event_class_syscall_enter, \ |
134 | .event.funcs = &enter_syscall_print_funcs, \ | 134 | .event.funcs = &enter_syscall_print_funcs, \ |
135 | .data = (void *)&__syscall_meta_##sname,\ | 135 | .data = (void *)&__syscall_meta_##sname,\ |
136 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | ||
136 | }; \ | 137 | }; \ |
137 | static struct ftrace_event_call __used \ | 138 | static struct ftrace_event_call __used \ |
138 | __attribute__((section("_ftrace_events"))) \ | 139 | __attribute__((section("_ftrace_events"))) \ |
139 | *__event_enter_##sname = &event_enter_##sname; \ | 140 | *__event_enter_##sname = &event_enter_##sname; |
140 | __TRACE_EVENT_FLAGS(enter_##sname, TRACE_EVENT_FL_CAP_ANY) | ||
141 | 141 | ||
142 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ | 142 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ |
143 | static struct syscall_metadata __syscall_meta_##sname; \ | 143 | static struct syscall_metadata __syscall_meta_##sname; \ |
@@ -147,11 +147,11 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
147 | .class = &event_class_syscall_exit, \ | 147 | .class = &event_class_syscall_exit, \ |
148 | .event.funcs = &exit_syscall_print_funcs, \ | 148 | .event.funcs = &exit_syscall_print_funcs, \ |
149 | .data = (void *)&__syscall_meta_##sname,\ | 149 | .data = (void *)&__syscall_meta_##sname,\ |
150 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | ||
150 | }; \ | 151 | }; \ |
151 | static struct ftrace_event_call __used \ | 152 | static struct ftrace_event_call __used \ |
152 | __attribute__((section("_ftrace_events"))) \ | 153 | __attribute__((section("_ftrace_events"))) \ |
153 | *__event_exit_##sname = &event_exit_##sname; \ | 154 | *__event_exit_##sname = &event_exit_##sname; |
154 | __TRACE_EVENT_FLAGS(exit_##sname, TRACE_EVENT_FL_CAP_ANY) | ||
155 | 155 | ||
156 | #define SYSCALL_METADATA(sname, nb) \ | 156 | #define SYSCALL_METADATA(sname, nb) \ |
157 | SYSCALL_TRACE_ENTER_EVENT(sname); \ | 157 | SYSCALL_TRACE_ENTER_EVENT(sname); \ |
@@ -159,6 +159,7 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
159 | static struct syscall_metadata __used \ | 159 | static struct syscall_metadata __used \ |
160 | __syscall_meta_##sname = { \ | 160 | __syscall_meta_##sname = { \ |
161 | .name = "sys"#sname, \ | 161 | .name = "sys"#sname, \ |
162 | .syscall_nr = -1, /* Filled in at boot */ \ | ||
162 | .nb_args = nb, \ | 163 | .nb_args = nb, \ |
163 | .types = types_##sname, \ | 164 | .types = types_##sname, \ |
164 | .args = args_##sname, \ | 165 | .args = args_##sname, \ |
@@ -176,6 +177,7 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
176 | static struct syscall_metadata __used \ | 177 | static struct syscall_metadata __used \ |
177 | __syscall_meta__##sname = { \ | 178 | __syscall_meta__##sname = { \ |
178 | .name = "sys_"#sname, \ | 179 | .name = "sys_"#sname, \ |
180 | .syscall_nr = -1, /* Filled in at boot */ \ | ||
179 | .nb_args = 0, \ | 181 | .nb_args = 0, \ |
180 | .enter_event = &event_enter__##sname, \ | 182 | .enter_event = &event_enter__##sname, \ |
181 | .exit_event = &event_exit__##sname, \ | 183 | .exit_event = &event_exit__##sname, \ |