diff options
author | Christoph Hellwig <hch@lst.de> | 2011-08-25 08:26:10 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-08-26 18:18:38 +0200 |
commit | 54a96714ce32dc9138411a37bc59861b982a3131 (patch) | |
tree | 7933f6f000b5ea1e5cc4bf528106f85575885723 /block.h | |
parent | 9f1d6eb805985c65d4b16892dc644b6893b9ea62 (diff) | |
download | qemu-54a96714ce32dc9138411a37bc59861b982a3131.tar.gz qemu-54a96714ce32dc9138411a37bc59861b982a3131.tar.bz2 qemu-54a96714ce32dc9138411a37bc59861b982a3131.zip |
block: latency accounting
Account the total latency for read/write/flush requests. This allows
management tools to average it based on a snapshot of the nr ops
counters and allow checking for SLAs or provide statistics.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -264,6 +264,7 @@ enum BlockAcctType { typedef struct BlockAcctCookie { int64_t bytes; + int64_t start_time_ns; enum BlockAcctType type; } BlockAcctCookie; |