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 98664db1be47..a17fcea2ca58 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -132,11 +132,11 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
132 | .class = &event_class_syscall_enter, \ | 132 | .class = &event_class_syscall_enter, \ |
133 | .event.funcs = &enter_syscall_print_funcs, \ | 133 | .event.funcs = &enter_syscall_print_funcs, \ |
134 | .data = (void *)&__syscall_meta_##sname,\ | 134 | .data = (void *)&__syscall_meta_##sname,\ |
135 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | ||
135 | }; \ | 136 | }; \ |
136 | static struct ftrace_event_call __used \ | 137 | static struct ftrace_event_call __used \ |
137 | __attribute__((section("_ftrace_events"))) \ | 138 | __attribute__((section("_ftrace_events"))) \ |
138 | *__event_enter_##sname = &event_enter_##sname; \ | 139 | *__event_enter_##sname = &event_enter_##sname; |
139 | __TRACE_EVENT_FLAGS(enter_##sname, TRACE_EVENT_FL_CAP_ANY) | ||
140 | 140 | ||
141 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ | 141 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ |
142 | static struct syscall_metadata __syscall_meta_##sname; \ | 142 | static struct syscall_metadata __syscall_meta_##sname; \ |
@@ -146,11 +146,11 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
146 | .class = &event_class_syscall_exit, \ | 146 | .class = &event_class_syscall_exit, \ |
147 | .event.funcs = &exit_syscall_print_funcs, \ | 147 | .event.funcs = &exit_syscall_print_funcs, \ |
148 | .data = (void *)&__syscall_meta_##sname,\ | 148 | .data = (void *)&__syscall_meta_##sname,\ |
149 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | ||
149 | }; \ | 150 | }; \ |
150 | static struct ftrace_event_call __used \ | 151 | static struct ftrace_event_call __used \ |
151 | __attribute__((section("_ftrace_events"))) \ | 152 | __attribute__((section("_ftrace_events"))) \ |
152 | *__event_exit_##sname = &event_exit_##sname; \ | 153 | *__event_exit_##sname = &event_exit_##sname; |
153 | __TRACE_EVENT_FLAGS(exit_##sname, TRACE_EVENT_FL_CAP_ANY) | ||
154 | 154 | ||
155 | #define SYSCALL_METADATA(sname, nb) \ | 155 | #define SYSCALL_METADATA(sname, nb) \ |
156 | SYSCALL_TRACE_ENTER_EVENT(sname); \ | 156 | SYSCALL_TRACE_ENTER_EVENT(sname); \ |
@@ -158,6 +158,7 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
158 | static struct syscall_metadata __used \ | 158 | static struct syscall_metadata __used \ |
159 | __syscall_meta_##sname = { \ | 159 | __syscall_meta_##sname = { \ |
160 | .name = "sys"#sname, \ | 160 | .name = "sys"#sname, \ |
161 | .syscall_nr = -1, /* Filled in at boot */ \ | ||
161 | .nb_args = nb, \ | 162 | .nb_args = nb, \ |
162 | .types = types_##sname, \ | 163 | .types = types_##sname, \ |
163 | .args = args_##sname, \ | 164 | .args = args_##sname, \ |
@@ -175,6 +176,7 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
175 | static struct syscall_metadata __used \ | 176 | static struct syscall_metadata __used \ |
176 | __syscall_meta__##sname = { \ | 177 | __syscall_meta__##sname = { \ |
177 | .name = "sys_"#sname, \ | 178 | .name = "sys_"#sname, \ |
179 | .syscall_nr = -1, /* Filled in at boot */ \ | ||
178 | .nb_args = 0, \ | 180 | .nb_args = 0, \ |
179 | .enter_event = &event_enter__##sname, \ | 181 | .enter_event = &event_enter__##sname, \ |
180 | .exit_event = &event_exit__##sname, \ | 182 | .exit_event = &event_exit__##sname, \ |