From: SJ Park <sj@kernel.org>
Cc: SJ Park <sj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
damon@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: [RFC PATCH v2 2/4] mm/damon/sysfs-schemes: support DAMOS_FILTER_TYPE_AGE_MS
Date: Wed, 4 Nov 2026 20:44:22 -0800 [thread overview]
Message-ID: <20261105044425.87142-3-sj@kernel.org> (raw)
In-Reply-To: <20261105044425.87142-1-sj@kernel.org>
Support use of DAMOS_FILTER_TYPE_AGE_MS via DAMON sysfs ABI. Add a user
keyword "age_ms" for configuring a filter of the type using the existing
filter configuration interface. Reuse existing 'min' and 'max' sysfs
files in the filter configuration directory for storing the age range in
milliseconds.
Signed-off-by: SJ Park <sj@kernel.org>
---
mm/damon/sysfs-schemes.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/mm/damon/sysfs-schemes.c b/mm/damon/sysfs-schemes.c
index 637f1bd0c950b..230987efac3ac 100644
--- a/mm/damon/sysfs-schemes.c
+++ b/mm/damon/sysfs-schemes.c
@@ -593,6 +593,10 @@ damos_sysfs_filter_type_names[] = {
.type = DAMOS_FILTER_TYPE_PROBE_HITS_WSUM,
.name = "probe_hits_wsum",
},
+ {
+ .type = DAMOS_FILTER_TYPE_AGE_MS,
+ .name = "age_ms",
+ },
};
static ssize_t type_show(struct kobject *kobj,
@@ -2875,6 +2879,7 @@ static int damon_sysfs_add_scheme_filters(struct damos *scheme,
filter->sz_range.max = sysfs_filter->range_max;
break;
case DAMOS_FILTER_TYPE_PROBE_HITS_WSUM:
+ case DAMOS_FILTER_TYPE_AGE_MS:
filter->range_min = sysfs_filter->range_min;
filter->range_max = sysfs_filter->range_max;
break;
--
2.47.3
next prev parent reply other threads:[~2026-11-05 4:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 4:44 [RFC PATCH v2 0/4] mm/damon: introduce age_ms damos core filter type SJ Park
2026-11-05 4:44 ` [RFC PATCH v2 1/4] mm/damon/core: add DAMOS_FILTER_TYPE_AGE_MS SJ Park
2026-11-05 4:55 ` sashiko-bot
2026-11-05 5:09 ` SJ Park
2026-11-05 4:44 ` SJ Park [this message]
2026-11-05 4:49 ` [RFC PATCH v2 2/4] mm/damon/sysfs-schemes: support DAMOS_FILTER_TYPE_AGE_MS sashiko-bot
2026-11-05 4:44 ` [RFC PATCH v2 3/4] Docs/mm/damon/design: update for age_ms damos core filter type SJ Park
2026-11-05 4:48 ` sashiko-bot
2026-11-05 4:44 ` [RFC PATCH v2 4/4] Docs/admin-guide/mm/damon/usage: update for age_ms damos core filter SJ Park
2026-11-05 4:47 ` sashiko-bot
2026-11-05 12:31 ` [RFC PATCH v2 0/4] mm/damon: introduce age_ms damos core filter type Aveline Noir
2026-11-05 14:32 ` SJ Park
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261105044425.87142-3-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.