summaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-08-25 08:26:10 +0200
committerKevin Wolf <kwolf@redhat.com>2011-08-26 18:18:38 +0200
commit54a96714ce32dc9138411a37bc59861b982a3131 (patch)
tree7933f6f000b5ea1e5cc4bf528106f85575885723 /block.h
parent9f1d6eb805985c65d4b16892dc644b6893b9ea62 (diff)
downloadqemu-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.h b/block.h
index df06af5982..3ac0b944eb 100644
--- a/block.h
+++ b/block.h
@@ -264,6 +264,7 @@ enum BlockAcctType {
typedef struct BlockAcctCookie {
int64_t bytes;
+ int64_t start_time_ns;
enum BlockAcctType type;
} BlockAcctCookie;