[RFC PATCH v3 36/37] mm/damon/sysfs: support write-type access sample filter

From: SeongJae Park
Date: Mon Dec 08 2025 - 02:07:44 EST


Allow users utilizing the write/read-only access sample results
filtering, by adding a new supported input for specifying the filter is
for that purpose.

Signed-off-by: SeongJae 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 b96df2d2d17e..d6f6a012a0e2 100644
--- a/mm/damon/sysfs.c
+++ b/mm/damon/sysfs.c
@@ -782,6 +782,10 @@ damon_sysfs_sample_filter_type_names[] = {
.type = DAMON_FILTER_TYPE_THREADS,
.name = "threads",
},
+ {
+ .type = DAMON_FILTER_TYPE_WRITE,
+ .name = "write",
+ },
};

static ssize_t type_show(struct kobject *kobj,
--
2.47.3