aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-12-01 03:23:55 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-01 11:33:30 -0500
commita1301da0997bf73c44dbe584e9070a13adc89672 (patch)
tree64c7e580f553291bcaaf065fc0dbceee8daf9cd6 /kernel
parentc252f65793874b56d50395ab604db465ce688665 (diff)
trace_syscalls: Remove duplicate init_enter_##sname()
use only one init_syscall_trace instead of many init_enter_##sname()/init_exit_##sname() Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Acked-by: Jason Baron <jbaron@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <4B14D29B.6090708@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_syscalls.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 144cc14d8551..c6514093c95a 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -412,6 +412,18 @@ void unreg_event_syscall_exit(struct ftrace_event_call *call)
412 mutex_unlock(&syscall_trace_lock); 412 mutex_unlock(&syscall_trace_lock);
413} 413}
414 414
415int init_syscall_trace(struct ftrace_event_call *call)
416{
417 int id;
418
419 id = register_ftrace_event(call->event);
420 if (!id)
421 return -ENODEV;
422 call->id = id;
423 INIT_LIST_HEAD(&call->fields);
424 return 0;
425}
426
415int __init init_ftrace_syscalls(void) 427int __init init_ftrace_syscalls(void)
416{ 428{
417 struct syscall_metadata *meta; 429 struct syscall_metadata *meta;