Support DAMON sysfs interface based setup of DAMON_FILTER_TYPE_ACTIVE type DAMON filters. For that, wire the type with a new user keyword, "active". Users can set up the new type of filter using the existing DAMON filter setup interface with the new keyword. Signed-off-by: SJ Park --- mm/damon/sysfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c index 70a4b64fb8ea9..779c98205a94b 100644 --- a/mm/damon/sysfs.c +++ b/mm/damon/sysfs.c @@ -1011,6 +1011,10 @@ damon_sysfs_filter_type_names[] = { .type = DAMON_FILTER_TYPE_HUGEPAGE_SIZE, .name = "hugepage_size", }, + { + .type = DAMON_FILTER_TYPE_ACTIVE, + .name = "active", + }, }; static ssize_t type_show(struct kobject *kobj, -- 2.47.3