Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] mm/damon/tests: add KUnit coverage for age_ms filters
@ 2026-11-23 15:09 SJ Park
  2026-11-23 15:09 ` [PATCH v3 1/3] mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS in damos_test_commit_filter() SJ Park
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: SJ Park @ 2026-11-23 15:09 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SJ Park, Brendan Higgins, David Gow, damon, kunit-dev,
	linux-kselftest, linux-mm

From: Jason Angelov <jasonangelov@ucla.edu>

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.

Changes from v2
- v2: https://lore.kernel.org/20261116-test-age-ms-filter-v2-0-3b265d59ec98@ucla.edu
- Collect R-b: from Aveline and SJ.
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@ucla.edu

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: 5247761933577a245d262c55994032b86cbec2d1
-- 
2.47.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-23 15:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 15:09 [PATCH v3 0/3] mm/damon/tests: add KUnit coverage for age_ms filters SJ Park
2026-11-23 15:09 ` [PATCH v3 1/3] mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS in damos_test_commit_filter() SJ Park
2026-11-23 15:09 ` [PATCH v3 2/3] mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS in damos_filter_for_ops() SJ Park
2026-11-23 15:09 ` [PATCH v3 3/3] mm/damon/tests/core-kunit: test DAMOS_FILTER_TYPE_AGE_MS interval changes SJ Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox