summaryrefslogtreecommitdiffstats
path: root/hmp-commands-info.hx
diff options
context:
space:
mode:
authorPaolo Bonzini2022-04-26 14:09:31 +0200
committerPaolo Bonzini2022-06-14 16:50:30 +0200
commit39cd0c7f12883ea99c3b321d836cb63b67352621 (patch)
treea1819792d496e49ba31af314d160b66979932351 /hmp-commands-info.hx
parentqmp: add filtering of statistics by name (diff)
downloadqemu-39cd0c7f12883ea99c3b321d836cb63b67352621.tar.gz
qemu-39cd0c7f12883ea99c3b321d836cb63b67352621.tar.xz
qemu-39cd0c7f12883ea99c3b321d836cb63b67352621.zip
hmp: add filtering of statistics by name
Allow the user to request only a specific subset of statistics. This can be useful when working on a feature or optimization that is known to affect that statistic. Example: (qemu) info stats vcpu halt_poll_fail_ns provider: kvm halt_poll_fail_ns (cumulative, ns): 0 In case multiple providers have the same statistic, the provider can be specified too: (qemu) info stats vcpu halt_poll_fail_ns kvm provider: kvm halt_poll_fail_ns (cumulative, ns): 0 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.hx8
1 files changed, 4 insertions, 4 deletions
diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
index a67040443b..3ffa24bd67 100644
--- a/hmp-commands-info.hx
+++ b/hmp-commands-info.hx
@@ -897,10 +897,10 @@ ERST
{
.name = "stats",
- .args_type = "target:s,provider:s?",
- .params = "target [provider]",
- .help = "show statistics for the given target (vm or vcpu); optionally filter by "
- "provider",
+ .args_type = "target:s,names:s?,provider:s?",
+ .params = "target [names] [provider]",
+ .help = "show statistics for the given target (vm or vcpu); optionally filter by"
+ "name (comma-separated list, or * for all) and provider",
.cmd = hmp_info_stats,
},