diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-28 21:13:59 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-06 12:02:32 -0500 |
commit | c7ef3a9004201bca90626db246a19dadd2c29c9b (patch) | |
tree | ae6ffbf65a5e75f4cfcded814ea28eb1d35b025c /include | |
parent | a342a0280b981c130e32dbb94dbd3a57959c4d04 (diff) |
tracing: Have syscall tracing call its own init function
In the clean up of having all events call one specific function,
the syscall event init was changed to call this helper function.
With the new print_fmt updates, the syscalls need to do special
initializations. This patch converts the syscall events to call
its own init function again.
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/syscalls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 207466a49f3d..ed353d274a77 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -143,7 +143,7 @@ struct perf_event_attr; | |||
143 | .name = "sys_enter"#sname, \ | 143 | .name = "sys_enter"#sname, \ |
144 | .system = "syscalls", \ | 144 | .system = "syscalls", \ |
145 | .event = &enter_syscall_print_##sname, \ | 145 | .event = &enter_syscall_print_##sname, \ |
146 | .raw_init = trace_event_raw_init, \ | 146 | .raw_init = init_syscall_trace, \ |
147 | .show_format = syscall_enter_format, \ | 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, \ |
@@ -165,7 +165,7 @@ struct perf_event_attr; | |||
165 | .name = "sys_exit"#sname, \ | 165 | .name = "sys_exit"#sname, \ |
166 | .system = "syscalls", \ | 166 | .system = "syscalls", \ |
167 | .event = &exit_syscall_print_##sname, \ | 167 | .event = &exit_syscall_print_##sname, \ |
168 | .raw_init = trace_event_raw_init, \ | 168 | .raw_init = init_syscall_trace, \ |
169 | .show_format = syscall_exit_format, \ | 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, \ |