mm/damon/sysfs-schemes: support address range type DAMOS filter
authorSeongJae Park <sj@kernel.org>
Wed, 2 Aug 2023 21:43:01 +0000 (21:43 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:35 +0000 (13:37 -0700)
commit2f1abcfccd86826777b2bcb2bb4e0d149a90ccf5
tree4c228804f361c7e54bb79a884c583cadde52cb26
parentab9bda001b681c293fb72ef21f083adfbcd78028
mm/damon/sysfs-schemes: support address range type DAMOS filter

Extend DAMON sysfs interface to support address range based DAMOS filters,
by adding a special keyword for the filter/<N>/type file, namely 'addr',
and two files under filter/<N>/ for specifying the start and the end
addresses of the range, namely 'addr_start' and 'addr_end'.

Link: https://lkml.kernel.org/r/20230802214312.110532-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
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