diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-02 05:18:19 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-02 05:18:19 +0000 |
commit | a36e69ddfe8452211bcf3ed94716c60bce5ccd8c (patch) | |
tree | 3d39dc151f5488c21f9e7635aa889e7420aea5c7 /block_int.h | |
parent | e4bcb14c79fb63a35aef3eb39e02c16c19b8b28d (diff) | |
download | qemu-a36e69ddfe8452211bcf3ed94716c60bce5ccd8c.tar.gz qemu-a36e69ddfe8452211bcf3ed94716c60bce5ccd8c.tar.bz2 qemu-a36e69ddfe8452211bcf3ed94716c60bce5ccd8c.zip |
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.h | 6 |
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; |