Skip to content

Commit d76c27e

Browse files
committed
virDomainMemoryStats: include hugetlb pgalloc and pgfail
Introduced in libvirt 5.4.0 by commit <a699b19f6c3>. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516 Signed-off-by: Pavel Hrdina <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]>
1 parent b0a7747 commit d76c27e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

libvirt-override.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,14 @@ libvirt_virDomainMemoryStats(PyObject *self ATTRIBUTE_UNUSED,
414414
key = libvirt_constcharPtrWrap("disk_caches");
415415
break;
416416
#endif /* LIBVIR_CHECK_VERSION(4, 6, 0) */
417+
#if LIBVIR_CHECK_VERSION(5, 4, 0)
418+
case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC:
419+
key = libvirt_constcharPtrWrap("hugetlb_pgalloc");
420+
break;
421+
case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL:
422+
key = libvirt_constcharPtrWrap("hugetlb_pgfail");
423+
break;
424+
#endif /* LIBVIR_CHECK_VERSION(5, 4, 0) */
417425
default:
418426
continue;
419427
}

0 commit comments

Comments
 (0)