Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Pull virtio update from Michael Tsirkin: "This adds reporting hugepage stats to virtio-balloon" * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: virtio_balloon: export hugetlb page allocation counts
This commit is contained in:
@@ -272,6 +272,12 @@ static unsigned int update_balloon_stats(struct virtio_balloon *vb)
|
||||
pages_to_bytes(events[PSWPOUT]));
|
||||
update_stat(vb, idx++, VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]);
|
||||
update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]);
|
||||
#ifdef CONFIG_HUGETLB_PAGE
|
||||
update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGALLOC,
|
||||
events[HTLB_BUDDY_PGALLOC]);
|
||||
update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL,
|
||||
events[HTLB_BUDDY_PGALLOC_FAIL]);
|
||||
#endif
|
||||
#endif
|
||||
update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE,
|
||||
pages_to_bytes(i.freeram));
|
||||
|
Reference in New Issue
Block a user