[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6406] info blockstats: show highest_allocated if exists (U
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [6406] info blockstats: show highest_allocated if exists (Uri Lublin) |
Date: |
Thu, 22 Jan 2009 18:57:30 +0000 |
Revision: 6406
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6406
Author: aliguori
Date: 2009-01-22 18:57:30 +0000 (Thu, 22 Jan 2009)
Log Message:
-----------
info blockstats: show highest_allocated if exists (Uri Lublin)
Signed-off-by: Uri Lublin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/block.c
Modified: trunk/block.c
===================================================================
--- trunk/block.c 2009-01-22 18:57:26 UTC (rev 6405)
+++ trunk/block.c 2009-01-22 18:57:30 UTC (rev 6406)
@@ -1077,6 +1077,7 @@
void bdrv_info_stats (void)
{
BlockDriverState *bs;
+ BlockDriverInfo bdi;
for (bs = bdrv_first; bs != NULL; bs = bs->next) {
term_printf ("%s:"
@@ -1084,10 +1085,14 @@
" wr_bytes=%" PRIu64
" rd_operations=%" PRIu64
" wr_operations=%" PRIu64
- "\n",
+ ,
bs->device_name,
bs->rd_bytes, bs->wr_bytes,
bs->rd_ops, bs->wr_ops);
+ if (bdrv_get_info(bs, &bdi) == 0)
+ term_printf(" high=%" PRIu64,
+ bdi.highest_alloc);
+ term_printf("\n");
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6406] info blockstats: show highest_allocated if exists (Uri Lublin),
Anthony Liguori <=