aboutsummaryrefslogtreecommitdiff
path: root/block_int.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 05:18:19 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 05:18:19 +0000
commita36e69ddfe8452211bcf3ed94716c60bce5ccd8c (patch)
tree3d39dc151f5488c21f9e7635aa889e7420aea5c7 /block_int.h
parente4bcb14c79fb63a35aef3eb39e02c16c19b8b28d (diff)
Collecting block device statistics, by Richard W.M. Jones.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3760 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block_int.h')
-rw-r--r--block_int.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/block_int.h b/block_int.h
index 2c5f168f6e..9463ea3aaf 100644
--- a/block_int.h
+++ b/block_int.h
@@ -114,6 +114,12 @@ struct BlockDriverState {
void *sync_aiocb;
+ /* I/O stats (display with "info blockstats"). */
+ uint64_t rd_bytes;
+ uint64_t wr_bytes;
+ uint64_t rd_ops;
+ uint64_t wr_ops;
+
/* NOTE: the following infos are only hints for real hardware
drivers. They are not used by the block driver */
int cyls, heads, secs, translation;