From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIxds-00089b-GT for qemu-devel@nongnu.org; Tue, 23 Jun 2009 00:29:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIxdo-00087I-MK for qemu-devel@nongnu.org; Tue, 23 Jun 2009 00:29:56 -0400 Received: from [199.232.76.173] (port=35690 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIxdn-00087E-TJ for qemu-devel@nongnu.org; Tue, 23 Jun 2009 00:29:51 -0400 Received: from mx2.redhat.com ([66.187.237.31]:32833) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIxdn-0003IN-7H for qemu-devel@nongnu.org; Tue, 23 Jun 2009 00:29:51 -0400 Date: Tue, 23 Jun 2009 01:29:44 -0300 From: Luiz Capitulino Message-ID: <20090623012944.3f4eba2e@doriath> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 09/11] QMP: Port 'info blockstats' command List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, ehabkost@redhat.com, jan.kiszka@siemens.com, dlaor@redhat.com, avi@redhat.com Signed-off-by: Luiz Capitulino --- block.c | 18 +++++++++--------- monitor.c | 3 ++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/block.c b/block.c index aca5a6d..3b4af27 100644 --- a/block.c +++ b/block.c @@ -1102,15 +1102,15 @@ void bdrv_info_stats(Monitor *mon) BlockDriverState *bs; for (bs = bdrv_first; bs != NULL; bs = bs->next) { - monitor_printf(mon, "%s:" - " rd_bytes=%" PRIu64 - " 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); + monitor_printf_data(mon, "%s:" + " rd_bytes=%" PRIu64 + " 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); } } diff --git a/monitor.c b/monitor.c index 84d4399..378a3ae 100644 --- a/monitor.c +++ b/monitor.c @@ -2512,7 +2512,8 @@ static int valid_control_cmd(Monitor *mon, const char *cmd, "balloon", NULL }; const char *valid_infos[] = { "balloon", - NULL }; + "blockstats", + NULL }; if (!monitor_ctrl_mode(mon)) { /* all commands are valid in user-mode mode */ -- 1.6.3.GIT