[libvirt] [PATCH v2 04/12] getstats: perform recursion in monitor collection

Peter Krempa pkrempa at redhat.com
Tue Dec 16 13:41:40 UTC 2014


On 12/16/14 09:04, Eric Blake wrote:
> When requested in a later patch, the QMP command results are now
> examined recursively.  As qemu_driver will eventually have to
> read items out of the hash table as stored by this patch, the
> computation of backing alias string is done in a shared location.
> 
> * src/qemu/qemu_domain.h (qemuDomainStorageAlias): New prototype.
> * src/qemu/qemu_domain.c (qemuDomainStorageAlias): Implement it.
> * src/qemu/qemu_monitor_json.c
> (qemuMonitorJSONGetOneBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacityOne): Perform recursion.
> (qemuMonitorJSONGetAllBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacity): Update callers.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  src/qemu/qemu_domain.c       | 16 +++++++++++++++
>  src/qemu/qemu_domain.h       |  1 +
>  src/qemu/qemu_monitor_json.c | 48 ++++++++++++++++++++++++++++++++------------
>  3 files changed, 52 insertions(+), 13 deletions(-)
> 

ACK,

finally code that grabs the data from the monitor.

Peter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141216/1d8c6390/attachment-0001.sig>


More information about the libvir-list mailing list