]> git.itanic.dy.fi Git - scan-pagemap/commit
Analyzer: Print detailed kpageflag statistics
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 29 Aug 2010 10:30:33 +0000 (13:30 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 29 Aug 2010 10:30:33 +0000 (13:30 +0300)
commit62bf88c85726994e287a41257474e856167ef382
tree445df8a3573693a198e5b7351c6f950352bf5d83
parent22caef07f89d1291ae8b297c60d47bdc1193644d
Analyzer: Print detailed kpageflag statistics

The print_page_statst() function is modified so that it will count how
many pages are found with each of the kpageflag bit set. The collected
stats are then printed so that count for every non-zero kpageflag is
shown. Since there are so many kpageflag flags (22 at the moment),
zero number counts are alwaysy omitted.

Since root priviledges are required to read the /proc/kpageflag
interface, all of the kpageflag counts are zero if user does not have
root priviledges.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
analyze.c