diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 12 |
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 | ||
415 | int 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 | |||
415 | int __init init_ftrace_syscalls(void) | 427 | int __init init_ftrace_syscalls(void) |
416 | { | 428 | { |
417 | struct syscall_metadata *meta; | 429 | struct syscall_metadata *meta; |