virtio_balloon: add array of stat names
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 13 Apr 2018 13:37:04 +0000 (16:37 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 24 Apr 2018 18:44:01 +0000 (21:44 +0300)
commitb40000325044433cd350725e2025214ae48b17fd
tree7349819d26c66e3bacd07873ee3e802dab2cfcb0
parent6d08b06e67cd117f6992c46611dfb4ce267cd71e
virtio_balloon: add array of stat names

Jason Wang points out that it's very hard for users to build an array of
stat names. The naive thing is to use VIRTIO_BALLOON_S_NR but that
breaks if we add more stats - as done e.g. recently by commit 6c64fe7f2
("virtio_balloon: export hugetlb page allocation counts").

Let's add an array of reasonably readable names.

Fixes: 6c64fe7f2 ("virtio_balloon: export hugetlb page allocation counts")
Cc: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jonathan Helman <jonathan.helman@oracle.com>
include/uapi/linux/virtio_balloon.h