OSDN Git Service

hmp: add basic "info stats" implementation
authorMark Kanda <mark.kanda@oracle.com>
Tue, 26 Apr 2022 10:17:35 +0000 (12:17 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2022 14:50:30 +0000 (16:50 +0200)
commit433815f5bdf71b5b2c47d9f1104816b95b551c49
tree3b2174bd33dc9e2ecc21f983bbfe419d11d1bdda
parentcfb344892209783a600e80053dba1cfeee4bd16a
hmp: add basic "info stats" implementation

Add an HMP command to retrieve statistics collected at run-time.
The command will retrieve and print either all VM-level statistics,
or all vCPU-level statistics for the currently selected CPU.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hmp-commands-info.hx
include/monitor/hmp.h
monitor/hmp-cmds.c