[libvirt] [PATCHv2 48/62] qemu: monitor: Retrieve blockstats also by qdev and node-names

Ján Tomko jtomko at redhat.com
Thu Aug 16 15:29:17 UTC 2018


On Mon, Aug 13, 2018 at 06:00:22PM +0200, Peter Krempa wrote:
>For use with -blockdev we need to be able to retrieve the stats by
>'qdev' for the frontend device stats since 'device' will be empty. Note
>that for non-blockdev case qdev and 'device' with 'drive-' skipped would
>be the same.
>
>Additionally so that we can report the highest written offset we need to
>also be able to access them by node-name for backing chain purposes.
>
>In cases when 'device' is empty it does not make sense to gather them.
>
>Allow arranging the stats simultaneously in all the above dimensions.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_monitor_json.c | 55 ++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 50 insertions(+), 5 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180816/d9c1aca0/attachment-0001.sig>


More information about the libvir-list mailing list