summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-01-21 05:01:22 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-21 05:01:21 -0800
commit25c683b52843cc0c283af5cb18ac1a6360521373 (patch)
tree401fa7abd32088cac7aeedc7f83918c74095dc05 /include/linux
parentadb2b7a2ffbfd9273d1b64e1729a2ee143e63a78 (diff)
parent0c079cd9d1e8092e9a123952c54517b648c1458b (diff)
Merge "Block: Add support to measure bio latencies"
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.
*/