summaryrefslogtreecommitdiffstats
path: root/hmp-commands-info.hx
diff options
context:
space:
mode:
authorPaolo Bonzini2022-04-26 13:58:59 +0200
committerPaolo Bonzini2022-06-14 16:50:30 +0200
commit7716417eac82b319b204f29224ffe1a6d2c0668a (patch)
treef63d87faaa380d880766b480d94040c08d5e40df /hmp-commands-info.hx
parentqmp: add filtering of statistics by provider (diff)
downloadqemu-7716417eac82b319b204f29224ffe1a6d2c0668a.tar.gz
qemu-7716417eac82b319b204f29224ffe1a6d2c0668a.tar.xz
qemu-7716417eac82b319b204f29224ffe1a6d2c0668a.zip
hmp: add filtering of statistics by provider
Allow the user to request statistics for a single provider of interest. Extracted from a patch by Mark Kanda. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hmp-commands-info.hx')
-rw-r--r--hmp-commands-info.hx7
1 files changed, 4 insertions, 3 deletions
diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
index 28757768f7..a67040443b 100644
--- a/hmp-commands-info.hx
+++ b/hmp-commands-info.hx
@@ -897,9 +897,10 @@ ERST
{
.name = "stats",
- .args_type = "target:s",
- .params = "target",
- .help = "show statistics; target is either vm or vcpu",
+ .args_type = "target:s,provider:s?",
+ .params = "target [provider]",
+ .help = "show statistics for the given target (vm or vcpu); optionally filter by "
+ "provider",
.cmd = hmp_info_stats,
},