diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-26 13:58:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-14 16:50:30 +0200 |
commit | 7716417eac82b319b204f29224ffe1a6d2c0668a (patch) | |
tree | f63d87faaa380d880766b480d94040c08d5e40df /hmp-commands-info.hx | |
parent | 068cc51d42f771d2a453d628c10e199e7d104edd (diff) |
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.hx | 7 |
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, }, |