Skip to content

Commit

Permalink
virDomainMemoryStats: include hugetlb pgalloc and pgfail
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
  • Loading branch information
phrdina committed Sep 20, 2019
1 parent b0a7747 commit d76c27e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libvirt-override.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d76c27e

Please sign in to comment.