[libvirt] [PATCH v2 03/12] getstats: prepare monitor collection for recursion
Peter Krempa
pkrempa at redhat.com
Tue Dec 16 12:54:42 UTC 2014
On 12/16/14 09:04, Eric Blake wrote:
> A future patch will allow recursion into backing chains when
> collecting block stats. This patch should not change behavior,
> but merely moves out the common code that will be reused once
> recursion is enabled, and adds the parameter that will turn on
> recursion.
>
> * src/qemu/qemu_monitor.h (qemuMonitorGetAllBlockStatsInfo)
> (qemuMonitorBlockStatsUpdateCapacity): Add recursion parameter,
> although it is ignored for now.
> * src/qemu/qemu_monitor.h (qemuMonitorGetAllBlockStatsInfo)
> (qemuMonitorBlockStatsUpdateCapacity): Likewise.
> * src/qemu/qemu_monitor_json.h
> (qemuMonitorJSONGetAllBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacity): Likewise.
> * src/qemu/qemu_monitor_json.c
> (qemuMonitorJSONGetAllBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacity): Add parameter, and
> split...
> (qemuMonitorJSONGetOneBlockStatsInfo)
> (qemuMonitorJSONBlockStatsUpdateCapacityOne): ...into helpers.
> (qemuMonitorJSONGetBlockStatsInfo): Update caller.
> * src/qemu/qemu_driver.c (qemuDomainGetStatsBlock): Update caller.
> * src/qemu/qemu_migration.c (qemuMigrationCookieAddNBD): Likewise.
>
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
> src/qemu/qemu_driver.c | 5 +-
> src/qemu/qemu_migration.c | 3 +-
> src/qemu/qemu_monitor.c | 24 ++--
> src/qemu/qemu_monitor.h | 6 +-
> src/qemu/qemu_monitor_json.c | 257 +++++++++++++++++++++++++------------------
> src/qemu/qemu_monitor_json.h | 6 +-
> 6 files changed, 175 insertions(+), 126 deletions(-)
>
ACK,
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/7afe09ae/attachment-0001.sig>
More information about the libvir-list
mailing list