diff options
author | Souvik Banerjee <souvik1997@gmail.com> | 2018-03-30 15:32:42 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-30 16:16:24 -0400 |
commit | a5040c2d8dd732252609cde84ee3cdd6f1b1f927 (patch) | |
tree | dee51781faddd696e53e811dc9404b81cbd96803 | |
parent | b65125fa57973baeabc3a6fe2f8c1179bd45fd95 (diff) |
blktrace: fix comment in blktrace_api.h
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 <souvik1997@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | include/uapi/linux/blktrace_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/blktrace_api.h b/include/uapi/linux/blktrace_api.h index 3c50e07ee833..690621b610e5 100644 --- a/include/uapi/linux/blktrace_api.h +++ b/include/uapi/linux/blktrace_api.h | |||
@@ -101,7 +101,7 @@ enum blktrace_notify { | |||
101 | struct blk_io_trace { | 101 | struct blk_io_trace { |
102 | __u32 magic; /* MAGIC << 8 | version */ | 102 | __u32 magic; /* MAGIC << 8 | version */ |
103 | __u32 sequence; /* event number */ | 103 | __u32 sequence; /* event number */ |
104 | __u64 time; /* in microseconds */ | 104 | __u64 time; /* in nanoseconds */ |
105 | __u64 sector; /* disk offset */ | 105 | __u64 sector; /* disk offset */ |
106 | __u32 bytes; /* transfer length */ | 106 | __u32 bytes; /* transfer length */ |
107 | __u32 action; /* what happened */ | 107 | __u32 action; /* what happened */ |