]> git.baikalelectronics.ru Git - kernel.git/commit
tools/vm/page-types.c: add support for idle page tracking
authorChristian Hansen <chansen3@cisco.com>
Fri, 17 Aug 2018 22:45:02 +0000 (15:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Aug 2018 23:20:28 +0000 (16:20 -0700)
commitd58396412fa624569314ba5eb853092712ce02c4
tree4ee3bc1743d05ec5c123d178dacfc441bc093f72
parent5489403f7d421e2a9455d4f0ee0ef9a3ac7fbc75
tools/vm/page-types.c: add support for idle page tracking

Add a flag which causes page-types to use the kernels's idle page
tracking to mark pages idle.  As the tool already prints the idle flag
if set, subsequent runs will show which pages have been accessed since
last run.

[akpm@linux-foundation.org: simplify mark_page_idle()]
[chansen3@cisco.com: reorganize mark_page_idle() logic, add docs]
Link: http://lkml.kernel.org/r/20180706172237.21691-1-chansen3@cisco.com
Link: http://lkml.kernel.org/r/20180612153223.13174-1-chansen3@cisco.com
Signed-off-by: Christian Hansen <chansen3@cisco.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/admin-guide/mm/idle_page_tracking.rst
tools/vm/page-types.c