mm/damon/sysfs-schemes: implement scheme region directory
authorSeongJae Park <sj@kernel.org>
Tue, 1 Nov 2022 22:03:23 +0000 (22:03 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:58:44 +0000 (15:58 -0800)
commit9277d0367ba18ef4bb98bafb1209e715844cdf7e
treeb735f67494398df338d118ce75d143ae54886180
parent5181b75f438d2e5b7f27bf48c6ea88a87c2882b7
mm/damon/sysfs-schemes: implement scheme region directory

Implement region directories under 'tried_regions' directory of each
scheme DAMON sysfs directory.  This directory will provide the address
range, the monitored access frequency ('nr_accesses'), and the age of each
DAMON region that corresponding DAMON-based operation scheme has tried to
be applied.  Note that this commit doesn't implement the code for filling
the data but only the sysfs directory.

Link: https://lkml.kernel.org/r/20221101220328.95765-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs-schemes.c