summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_syscalls.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-02-21 10:33:58 +0800
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 00:34:52 -0400
commitb8aae39fc54a2e297698288ac48237cc4c6f83bb (patch)
tree4c27e192fd96f841cd02960c8d8e9219fbf2c9f2 /kernel/trace/trace_syscalls.c
parent7e4f44b153e1ec07bb64c1c1671cdf492465bbf3 (diff)
downloadblackbird-obmc-linux-b8aae39fc54a2e297698288ac48237cc4c6f83bb.tar.gz
blackbird-obmc-linux-b8aae39fc54a2e297698288ac48237cc4c6f83bb.zip
tracing/syscalls: Annotate field-defining functions with __init
These two functions are called during kernel boot only. Link: http://lkml.kernel.org/r/51258796.7020704@huawei.com Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r--kernel/trace/trace_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index a842783ad6be..00b5c3e6fbbe 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -261,7 +261,7 @@ static void free_syscall_print_fmt(struct ftrace_event_call *call)
kfree(call->print_fmt);
}
-static int syscall_enter_define_fields(struct ftrace_event_call *call)
+static int __init syscall_enter_define_fields(struct ftrace_event_call *call)
{
struct syscall_trace_enter trace;
struct syscall_metadata *meta = call->data;
@@ -284,7 +284,7 @@ static int syscall_enter_define_fields(struct ftrace_event_call *call)
return ret;
}
-static int syscall_exit_define_fields(struct ftrace_event_call *call)
+static int __init syscall_exit_define_fields(struct ftrace_event_call *call)
{
struct syscall_trace_exit trace;
int ret;
OpenPOWER on IntegriCloud