summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNikhilesh Reddy <reddyn@codeaurora.org>2016-10-24 16:31:44 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-04 16:58:34 -0800
commit0c079cd9d1e8092e9a123952c54517b648c1458b (patch)
tree6837ceb47a5fcba48dde2e267a7249e5b0d51f3a /include/linux
parent8bb66a7e413624884e697d295b7e136f96209cd9 (diff)
Block: Add support to measure bio latencies
Add support to measure bio latencies as seen by upper layers. Change-Id: I9bfa84d2b57aa9b41d3be08744cb4cb327680ab4 Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blk_types.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index da8ca5a7da58..6d73a04d0150 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -39,6 +39,15 @@ struct bvec_iter {
current bvec */
};
+#ifdef CONFIG_BLOCK_PERF_FRAMEWORK
+/* Double declaration from ktime.h so as to not break the include dependency
+ * chain. Should be kept up to date.
+ */
+union blk_ktime {
+ s64 tv64;
+};
+#endif
+
/*
* main unit of I/O for the block layer and lower layers (ie drivers and
* stacking drivers)
@@ -54,6 +63,10 @@ struct bio {
struct bvec_iter bi_iter;
+#ifdef CONFIG_BLOCK_PERF_FRAMEWORK
+ union blk_ktime submit_time;
+ unsigned int blk_sector_count;
+#endif
/* Number of segments in this BIO after
* physical address coalescing is performed.
*/