[PATCH] blktrace: fix comment in blktrace_api.h

2018-03-30 Thread Souvik Banerjee
The `__u64 time` field of the blk_io_trace struct refers to the time in nanoseconds, not in microseconds. It is set in __blk_add_trace, which does the following: t->time = ktime_to_ns(ktime_get()); ktime_to_ns returns ktime_t in nanoseconds, not microseconds. Signed-off-by: Souvik Banerjee

Re: [PATCH] blktrace: fix comment in blktrace_api.h

2018-03-30 Thread Jens Axboe
On 3/30/18 1:32 PM, Souvik Banerjee wrote: > The `__u64 time` field of the blk_io_trace struct refers to > the time in nanoseconds, not in microseconds. It is set in > __blk_add_trace, which does the following: > > t->time = ktime_to_ns(ktime_get()); > > ktime_to_ns returns ktime_t in nanosec