mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
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>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user