tracing: Annotate event field-defining functions with __init
authorLi Zefan <lizefan@huawei.com>
Thu, 21 Feb 2013 02:33:33 +0000 (10:33 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:34:51 +0000 (00:34 -0400)
commit7e4f44b153e1ec07bb64c1c1671cdf492465bbf3
tree7477c5f2e6e904391204ac5899bb32f59fb083bc
parentf71130de5c7fba92faf3901784714e37a234c08f
tracing: Annotate event field-defining functions with __init

Those functions are called either during kernel boot or module init.

Before:

$ dmesg | grep 'Freeing unused kernel memory'
Freeing unused kernel memory: 1208k freed
Freeing unused kernel memory: 1360k freed
Freeing unused kernel memory: 1960k freed

After:

$ dmesg | grep 'Freeing unused kernel memory'
Freeing unused kernel memory: 1236k freed
Freeing unused kernel memory: 1388k freed
Freeing unused kernel memory: 1960k freed

Link: http://lkml.kernel.org/r/5125877D.5000201@huawei.com
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/trace/ftrace.h
kernel/trace/trace_export.c