projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e4f44b
)
tracing/syscalls: Annotate field-defining functions with __init
author
Li Zefan
<lizefan@huawei.com>
Thu, 21 Feb 2013 02:33:58 +0000
(10:33 +0800)
committer
Steven Rostedt
<rostedt@goodmis.org>
Fri, 15 Mar 2013 04:34:52 +0000
(
00:34
-0400)
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>
kernel/trace/trace_syscalls.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace_syscalls.c
b/kernel/trace/trace_syscalls.c
index a842783ad6bee71d4debd8f869ba7bcf84685f8d..00b5c3e6fbbe9767cdb42e3653ebcd5d26af8843 100644
(file)
--- 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;