tracing: Add a helper function for event print functions
authorLi Zefan <lizefan@huawei.com>
Thu, 21 Feb 2013 02:32:38 +0000 (10:32 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:34:51 +0000 (00:34 -0400)
commitf71130de5c7fba92faf3901784714e37a234c08f
tree3632ac6de403c726b2ea8bb890f573c9fd6c54bc
parent15693458c4bc0693fd63a50d60f35b628fcf4e29
tracing: Add a helper function for event print functions

Move duplicate code in event print functions to a helper function.

This shrinks the size of the kernel by ~13K.

   text    data     bss     dec     hex filename
6596137 1743966 10138672        18478775        119f6b7 vmlinux.o.old
6583002 1743849 10138672        18465523        119c2f3 vmlinux.o.new

Link: http://lkml.kernel.org/r/51258746.2060304@huawei.com
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
include/trace/ftrace.h
kernel/trace/trace_output.c