diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-29 05:13:59 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-06 20:02:32 +0300 |
commit | c7ef3a9004201bca90626db246a19dadd2c29c9b (patch) | |
tree | ae6ffbf65a5e75f4cfcded814ea28eb1d35b025c /kernel/trace/trace_syscalls.c | |
parent | a342a0280b981c130e32dbb94dbd3a57959c4d04 (diff) | |
download | linux-c7ef3a9004201bca90626db246a19dadd2c29c9b.tar.xz |
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 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 1352b0a36fac..a78e86349ecb 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c @@ -450,14 +450,14 @@ int init_syscall_trace(struct ftrace_event_call *call) if (set_syscall_print_fmt(call) < 0) return -ENOMEM; - id = register_ftrace_event(call->event); - if (!id) { + id = trace_event_raw_init(call); + + if (id < 0) { free_syscall_print_fmt(call); - return -ENODEV; + return id; } - call->id = id; - INIT_LIST_HEAD(&call->fields); - return 0; + + return id; } int __init init_ftrace_syscalls(void) |