mm/damon: add DAMOS filter type YOUNG
authorSeongJae Park <sj@kernel.org>
Fri, 26 Apr 2024 19:52:42 +0000 (12:52 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:55 +0000 (17:53 -0700)
commit2d8b24654feabc62ed9e132911319f1c48ab0256
treee407634655e64257678e7f58730c2f2a45f9b03b
parent6daea38215e6a046892f87a8ff2c61f791de4ddd
mm/damon: add DAMOS filter type YOUNG

Define yet another DAMOS filter type, YOUNG.  Like anon and memcg, the
type of filter will be applied to each page in the memory region, and see
if the page is accessed since the last check.  Based on the 'matching'
parameter, the page is filtered out or in.

Note that this commit is adding only the type definition.  The
implementation should be made by DAMON operations sets.  A commit for the
implementation on 'paddr' DAMON operations set will follow.

Link: https://lkml.kernel.org/r/20240426195247.100306-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Tested-by: Honggyu Kim <honggyu.kim@sk.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/sysfs-schemes.c