qemu-e2k/include/monitor
Paolo Bonzini 068cc51d42 qmp: add filtering of statistics by provider
Allow retrieving the statistics from a specific provider only.
This can be used in the future by HMP commands such as "info
sync-profile" or "info profile".  The next patch also adds
filter-by-provider capabilities to the HMP equivalent of
query-stats, "info stats".

Example:

{ "execute": "query-stats",
  "arguments": {
    "target": "vm",
    "providers": [
      { "provider": "kvm" } ] } }

The QAPI is a bit more verbose than just a list of StatsProvider,
so that it can be subsequently extended with filtering of statistics
by name.

If a provider is specified more than once in the filter, each request
will be included separately in the output.

Extracted from a patch by Mark Kanda.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-06-14 16:50:30 +02:00
..
hmp-target.h mos6522: add "info via" HMP command for debugging 2022-03-09 09:28:28 +00:00
hmp.h hmp: add basic "info stats" implementation 2022-06-14 16:50:30 +02:00
monitor.h Move error_printf_unless_qmp() with monitor unit 2022-04-21 17:09:09 +04:00
qdev.h qdev: Base object creation on QDict rather than QemuOpts 2021-10-15 16:11:22 +02:00
stats.h qmp: add filtering of statistics by provider 2022-06-14 16:50:30 +02:00