[RFC PATCH v2 03/17] mm/damon/sysfs: support pgidle_unset probe filter type
From: SJ Park
Date: Sun Jul 26 2026 - 13:43:22 EST
Extend DAMON sysfs interface to allow users to set
DAMON_FILTER_TYPE_PGIDLE_UNSET by writing 'pgidle_unset' to the probe
filter type file.
Signed-off-by: SJ Park <sj@xxxxxxxxxx>
---
mm/damon/sysfs.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c
index 053ba2e53b969..376c6ecbd4bf3 100644
--- a/mm/damon/sysfs.c
+++ b/mm/damon/sysfs.c
@@ -782,6 +782,10 @@ damon_sysfs_filter_type_names[] = {
.type = DAMON_FILTER_TYPE_MEMCG,
.name = "memcg",
},
+ {
+ .type = DAMON_FILTER_TYPE_PGIDLE_UNSET,
+ .name = "pgidle_unset",
+ },
};
static ssize_t type_show(struct kobject *kobj,
--
2.47.3