From a36e69ddfe8452211bcf3ed94716c60bce5ccd8c Mon Sep 17 00:00:00 2001 From: ths Date: Sun, 2 Dec 2007 05:18:19 +0000 Subject: 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 --- block_int.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'block_int.h') 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; -- cgit v1.2.3