[libvirt] [python PATCH 0/2] implement missing domain memory stats

Pavel Hrdina (2): virDomainMemoryStats: include disk caches virDomainMemoryStats: include hugetlb pgalloc and pgfail libvirt-override.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.21.0

Introduced in libvirt 4.6.0 by commit <aee04655089>. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> --- libvirt-override.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvirt-override.c b/libvirt-override.c index ff2cfdf..3310b54 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -409,6 +409,11 @@ libvirt_virDomainMemoryStats(PyObject *self ATTRIBUTE_UNUSED, key = libvirt_constcharPtrWrap("last_update"); break; #endif /* LIBVIR_CHECK_VERSION(2, 1, 0) */ +#if LIBVIR_CHECK_VERSION(4, 6, 0) + case VIR_DOMAIN_MEMORY_STAT_DISK_CACHES: + key = libvirt_constcharPtrWrap("disk_caches"); + break; +#endif /* LIBVIR_CHECK_VERSION(4, 6, 0) */ default: continue; } -- 2.21.0

On Fri, Sep 20, 2019 at 11:33:10AM +0200, Pavel Hrdina wrote:
Introduced in libvirt 4.6.0 by commit <aee04655089>.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> --- libvirt-override.c | 5 +++++ 1 file changed, 5 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Introduced in libvirt 5.4.0 by commit <a699b19f6c3>. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> --- libvirt-override.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libvirt-override.c b/libvirt-override.c index 3310b54..c76c447 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -414,6 +414,14 @@ libvirt_virDomainMemoryStats(PyObject *self ATTRIBUTE_UNUSED, key = libvirt_constcharPtrWrap("disk_caches"); break; #endif /* LIBVIR_CHECK_VERSION(4, 6, 0) */ +#if LIBVIR_CHECK_VERSION(5, 4, 0) + case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC: + key = libvirt_constcharPtrWrap("hugetlb_pgalloc"); + break; + case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL: + key = libvirt_constcharPtrWrap("hugetlb_pgfail"); + break; +#endif /* LIBVIR_CHECK_VERSION(5, 4, 0) */ default: continue; } -- 2.21.0

On Fri, Sep 20, 2019 at 11:33:11AM +0200, Pavel Hrdina wrote:
Introduced in libvirt 5.4.0 by commit <a699b19f6c3>.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> --- libvirt-override.c | 8 ++++++++ 1 file changed, 8 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
participants (2)
-
Daniel P. Berrangé
-
Pavel Hrdina