aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAnthony Yznaga <[email protected]>2018-12-28 00:37:31 -0800
committerLinus Torvalds <[email protected]>2018-12-28 12:11:50 -0800
commit144552ff8995dd34d049a203d636b259ab751137 (patch)
tree3e3ed4aa4afc2e22c12120be581e1846b864b4db /tools/perf/scripts/python
parentb6fb87b8e3ff1ef6bcf68470f24a97c984554d5a (diff)
/proc/kpagecount: return 0 for special pages that are never mapped
Certain pages that are never mapped to userspace have a type indicated in the page_type field of their struct pages (e.g. PG_buddy). page_type overlaps with _mapcount so set the count to 0 and avoid calling page_mapcount() for these pages. [[email protected]: incorporate feedback from Matthew Wilcox] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Anthony Yznaga <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Acked-by: Matthew Wilcox <[email protected]> Reviewed-by: Naoya Horiguchi <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: David Rientjes <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Alexander Duyck <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Miles Chen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions