]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
blktrace: extract duplidate code
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 27 Mar 2009 02:21:23 +0000 (10:21 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 31 Mar 2009 15:28:59 +0000 (17:28 +0200)
commitb6a4b0c3ad4c09c1d37b1040ac8e3ebd1016e10b
tree95025e5a1b49056bdadf9bbb3e96417430d1830a
parentad5dd5493a55e462796e42e50a49e76df76fdb05
blktrace: extract duplidate code

Impact: cleanup

blk_trace_event_print() and blk_tracer_print_line() share most of the code.

   text    data     bss     dec     hex filename
   8605     393      12    9010    2332 kernel/trace/blktrace.o.orig
   text    data     bss     dec     hex filename
   8555     393      12    8960    2300 kernel/trace/blktrace.o

This patch also prepares for the next patch, that prints out BLK_TN_MESSAGE.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/blktrace.c