From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPx2h-0002LG-Mb for qemu-devel@nongnu.org; Thu, 22 Jan 2009 05:44:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPx2f-0002IX-7l for qemu-devel@nongnu.org; Thu, 22 Jan 2009 05:44:10 -0500 Received: from [199.232.76.173] (port=37246 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPx2e-0002Hz-3y for qemu-devel@nongnu.org; Thu, 22 Jan 2009 05:44:08 -0500 Received: from mx2.redhat.com ([66.187.237.31]:58658) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPx2d-0000pc-L6 for qemu-devel@nongnu.org; Thu, 22 Jan 2009 05:44:07 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n0MAi7lx014819 for ; Thu, 22 Jan 2009 05:44:07 -0500 From: Uri Lublin Date: Thu, 22 Jan 2009 12:43:53 +0200 Message-Id: <1232621035-4951-4-git-send-email-uril@redhat.com> In-Reply-To: <1232621035-4951-3-git-send-email-uril@redhat.com> References: <1232621035-4951-1-git-send-email-uril@redhat.com> <1232621035-4951-2-git-send-email-uril@redhat.com> <1232621035-4951-3-git-send-email-uril@redhat.com> Subject: [Qemu-devel] [PATCH 3/5 v2] info blockstats: show highest_allocated if exists Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Uri Lublin Signed-off-by: Uri Lublin --- block.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index 3250327..0058531 100644 --- a/block.c +++ b/block.c @@ -1077,6 +1077,7 @@ void bdrv_info(void) 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 @@ void bdrv_info_stats (void) " 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"); } } -- 1.6.0.6