David Rientjes f79f177c25 smaps: add pages referenced count to smaps
Adds an additional unsigned long field to struct mem_size_stats called
'referenced'.  For each pte walked in the smaps code, this field is
incremented by PAGE_SIZE if it has pte-reference bits.

An additional line was added to the /proc/pid/smaps output for each VMA to
indicate how many pages within it are currently marked as referenced or
accessed.

Cc: Hugh Dickins <hugh@veritas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:12:52 -07:00
..
2007-02-20 17:10:15 -08:00
2007-05-07 12:12:51 -07:00
2007-05-07 12:12:51 -07:00
2007-05-07 12:12:51 -07:00
2007-05-07 12:12:51 -07:00
2007-05-07 12:12:51 -07:00
2007-05-07 12:12:51 -07:00
2006-01-11 18:42:13 -08:00
2006-10-04 06:51:26 -06:00
2006-12-07 08:39:25 -08:00
2006-04-11 13:53:33 +02:00
2006-12-07 08:39:25 -08:00
2007-05-07 12:12:51 -07:00
2007-02-17 21:30:15 -05:00
2006-10-01 00:39:19 -07:00
2006-03-23 07:38:11 -08:00
2007-03-29 14:26:42 +02:00