summaryrefslogtreecommitdiff
path: root/mm/percpu-stats.c
diff options
context:
space:
mode:
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>2017-07-16 05:23:08 +0300
committerTejun Heo <tj@kernel.org>2017-07-17 17:46:58 +0300
commit6b9b6f39946c4a7a98fac31ee91bac43cd2b73a9 (patch)
treef6405a03492b80c36dec85a784430106d85ce82a /mm/percpu-stats.c
parent02459164a27e6cf9577fd12fc3ebed78f8fa767f (diff)
downloadlinux-6b9b6f39946c4a7a98fac31ee91bac43cd2b73a9.tar.xz
percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats
Percpu memory holds a minimum threshold of pages that are populated in order to serve atomic percpu memory requests. This change makes it easier to verify that there are a minimum number of populated pages lying around. Signed-off-by: Dennis Zhou <dennisszhou@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/percpu-stats.c')
-rw-r--r--mm/percpu-stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/percpu-stats.c b/mm/percpu-stats.c
index fa0f5de26c68..44e561d3ab47 100644
--- a/mm/percpu-stats.c
+++ b/mm/percpu-stats.c
@@ -164,6 +164,7 @@ alloc_buffer:
PU(nr_max_chunks);
PU(min_alloc_size);
PU(max_alloc_size);
+ P("empty_pop_pages", pcpu_nr_empty_pop_pages);
seq_putc(m, '\n');
#undef PU