mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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
This commit is contained in:
parent
e4bcb14c79
commit
a36e69ddfe
4 changed files with 60 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue