diff options
author | Wanpeng Li <liwanp@linux.vnet.ibm.com> | 2013-04-03 18:16:22 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-03 13:38:37 -0700 |
commit | 834e3a1cead22c40ad55dad9cd683e42396d45c1 (patch) | |
tree | 8fe408554bd84a86099ae5a998ea9b844cf053e1 /drivers/staging/zcache/debug.c | |
parent | staging: zcache: fix static variables defined in debug.h but used in mutiple C files (diff) | |
download | linux-dev-834e3a1cead22c40ad55dad9cd683e42396d45c1.tar.xz linux-dev-834e3a1cead22c40ad55dad9cd683e42396d45c1.zip |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/zcache/debug.c b/drivers/staging/zcache/debug.c index faab2a9b231c..daa26919b886 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), |