]> git.proxmox.com Git - qemu.git/blobdiff - block_int.h
Collecting block device statistics, by Richard W.M. Jones.
[qemu.git] / block_int.h
index 2c5f168f6e7eb0be981f7633691440701cf03647..9463ea3aaf2b4a99251dcca23bf926b8e676b5bf 100644 (file)
@@ -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;