summaryrefslogtreecommitdiff
path: root/drivers/staging/zcache/debug.c
diff options
context:
space:
mode:
authorWanpeng Li <liwanp@linux.vnet.ibm.com>2013-04-03 10:16:22 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-03 20:38:37 (GMT)
commit834e3a1cead22c40ad55dad9cd683e42396d45c1 (patch)
tree8fe408554bd84a86099ae5a998ea9b844cf053e1 /drivers/staging/zcache/debug.c
parent90874fc21ca6ca46058c5039fe78a4155d9a631e (diff)
downloadlinux-fsl-qoriq-834e3a1cead22c40ad55dad9cd683e42396d45c1.tar.xz
staging: zcache: introduce zero-filled page stat count
Introduce zero-filled page statistics to monitor the number of zero-filled pages. Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/zcache/debug.c')
-rw-r--r--drivers/staging/zcache/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/zcache/debug.c b/drivers/staging/zcache/debug.c
index faab2a9..daa2691 100644
--- a/drivers/staging/zcache/debug.c
+++ b/drivers/staging/zcache/debug.c
@@ -35,6 +35,8 @@ ssize_t zcache_pers_ate_eph;
ssize_t zcache_pers_ate_eph_failed;
ssize_t zcache_evicted_eph_zpages;
ssize_t zcache_evicted_eph_pageframes;
+ssize_t zcache_zero_filled_pages;
+ssize_t zcache_zero_filled_pages_max;
#define ATTR(x) { .name = #x, .val = &zcache_##x, }
static struct debug_entry {
@@ -62,6 +64,7 @@ static struct debug_entry {
ATTR(last_inactive_anon_pageframes),
ATTR(eph_nonactive_puts_ignored),
ATTR(pers_nonactive_puts_ignored),
+ ATTR(zero_filled_pages),
#ifdef CONFIG_ZCACHE_WRITEBACK
ATTR(outstanding_writeback_pages),
ATTR(writtenback_pages),