]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
blktrace: fix timestamp in binary output
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 25 Mar 2009 09:18:56 +0000 (17:18 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 31 Mar 2009 15:26:47 +0000 (17:26 +0200)
commit6c051ce0307526adec32a847f0daa1af2124f0a9
treece7317e18bf9bdd379e73782771761e4c24a156c
parent093419971e03362a00f499960557c119982ea09f
blktrace: fix timestamp in binary output

I found the timestamp is wrong:

 # echo bin > trace_option
 # echo blk > current_tracer
 # cat trace_pipe | blkparse -i -
 8,0    0        0     0.000000000   504  A   W ...
 ...
 8,7    1        0     0.008534097     0  C   R ...
            (should be 8.534097xxx)

user-space blkparse expects the timestamp to be nanosecond.

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