[PATCH v2 0/3] mm/damon/tests: add KUnit coverage for age_ms filters
From: Jason Angelov
Date: Mon Nov 16 2026 - 06:11:53 EST
The DAMON core tests do not cover DAMOS_FILTER_TYPE_AGE_MS. Add tests for
committing valid and invalid age ranges, identifying the filter as
core-handled, and matching ages at and outside the range boundaries.
Region age is counted in aggregation intervals, but age_ms filter bounds
are in milliseconds. The interval-change test checks filter matching
after both increasing and decreasing the aggregation interval.
Signed-off-by: Jason Angelov <jasonangelov@xxxxxxxx>
---
Changes in v2:
- Fix commit-message formatting, line wrapping, and comments.
- Set age and interval inputs directly in patch 3.
- Add SJ's Reviewed-by tags to patches 1 and 2.
- Link to v1: https://lore.kernel.org/r/20261113-test-age-ms-filter-v1-0-b99eab2f71bb@xxxxxxxx
---
Jason Angelov (3):
mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS in damos_test_commit_filter()
mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS in damos_filter_for_ops()
mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS interval changes
mm/damon/tests/core-kunit.h | 93 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
---
base-commit: daed51c9105158768a3949395135aa6e0a04bb7e
change-id: 20261112-test-age-ms-filter-9953843e7204
Best regards,
--
Jason Angelov <jasonangelov@xxxxxxxx>