[libvirt] [python PATCH 2/2] virDomainMemoryStats: include hugetlb pgalloc and pgfail

Pavel Hrdina posted 2 patches 6 years, 4 months ago
[libvirt] [python PATCH 2/2] virDomainMemoryStats: include hugetlb pgalloc and pgfail
Posted by Pavel Hrdina 6 years, 4 months ago
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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [python PATCH 2/2] virDomainMemoryStats: include hugetlb pgalloc and pgfail
Posted by Daniel P. Berrangé 6 years, 4 months ago
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 :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list