summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJonathan Helman <jonathan.helman@oracle.com>2018-03-19 15:14:14 -0700
committerMichael S. Tsirkin <mst@redhat.com>2018-04-10 21:23:55 +0300
commit6c64fe7f2adcee21d7c4247f1ec021fd18428fc4 (patch)
treefd2830b8ed3334508e088771b9745f6be259e7cf /include/uapi/linux
parentdc32bb678e103afbcfa4d814489af0566307f528 (diff)
downloadop-kernel-dev-6c64fe7f2adcee21d7c4247f1ec021fd18428fc4.zip
op-kernel-dev-6c64fe7f2adcee21d7c4247f1ec021fd18428fc4.tar.gz
virtio_balloon: export hugetlb page allocation counts
Export the number of successful and failed hugetlb page allocations via the virtio balloon driver. These 2 counts come directly from the vm_events HTLB_BUDDY_PGALLOC and HTLB_BUDDY_PGALLOC_FAIL. Signed-off-by: Jonathan Helman <jonathan.helman@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/virtio_balloon.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h
index 4e8b830..40297a3 100644
--- a/include/uapi/linux/virtio_balloon.h
+++ b/include/uapi/linux/virtio_balloon.h
@@ -53,7 +53,9 @@ struct virtio_balloon_config {
#define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */
#define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */
#define VIRTIO_BALLOON_S_CACHES 7 /* Disk caches */
-#define VIRTIO_BALLOON_S_NR 8
+#define VIRTIO_BALLOON_S_HTLB_PGALLOC 8 /* Hugetlb page allocations */
+#define VIRTIO_BALLOON_S_HTLB_PGFAIL 9 /* Hugetlb page allocation failures */
+#define VIRTIO_BALLOON_S_NR 10
/*
* Memory statistics structure.
OpenPOWER on IntegriCloud