summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 05:18:19 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-02 05:18:19 +0000
commita36e69ddfe8452211bcf3ed94716c60bce5ccd8c (patch)
tree3d39dc151f5488c21f9e7635aa889e7420aea5c7 /monitor.c
parente4bcb14c79fb63a35aef3eb39e02c16c19b8b28d (diff)
downloadqemu-a36e69ddfe8452211bcf3ed94716c60bce5ccd8c.tar.gz
Collecting block device statistics, by Richard W.M. Jones.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3760 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index bb05ca6baf..3c4694c784 100644
--- a/monitor.c
+++ b/monitor.c
@@ -255,6 +255,11 @@ static void do_info_block(void)
bdrv_info();
}
+static void do_info_blockstats(void)
+{
+ bdrv_info_stats();
+}
+
/* get the current CPU defined by the user */
static int mon_set_cpu(int cpu_index)
{
@@ -1327,6 +1332,8 @@ static term_cmd_t info_cmds[] = {
"", "show the network state" },
{ "block", "", do_info_block,
"", "show the block devices" },
+ { "blockstats", "", do_info_blockstats,
+ "", "show block device statistics" },
{ "registers", "", do_info_registers,
"", "show the cpu registers" },
{ "cpus", "", do_info_cpus,