• L
    blktrace: extract duplidate code · b6a4b0c3
    Li Zefan 提交于
    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: NLi Zefan <lizf@cn.fujitsu.com>
    Acked-by: NJens 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: NIngo Molnar <mingo@elte.hu>
    b6a4b0c3
blktrace.c 35.4 KB