mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
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>
This commit is contained in:
parent
c252f65793
commit
a1301da099
3 changed files with 15 additions and 28 deletions
|
@ -412,6 +412,18 @@ void unreg_event_syscall_exit(struct ftrace_event_call *call)
|
|||
mutex_unlock(&syscall_trace_lock);
|
||||
}
|
||||
|
||||
int init_syscall_trace(struct ftrace_event_call *call)
|
||||
{
|
||||
int id;
|
||||
|
||||
id = register_ftrace_event(call->event);
|
||||
if (!id)
|
||||
return -ENODEV;
|
||||
call->id = id;
|
||||
INIT_LIST_HEAD(&call->fields);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __init init_ftrace_syscalls(void)
|
||||
{
|
||||
struct syscall_metadata *meta;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue