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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux