selftests-damon-sysfs_refresh-test-kdamond-refresh_ms.patch removed from -mm tree
The quilt patch titled
Subject: selftests/damon/sysfs_refresh: test kdamond refresh_ms
has been removed from the -mm tree. Its filename was
selftests-damon-sysfs_refresh-test-kdamond-refresh_ms.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Ruslan Valiyev <[email protected]>
Subject: selftests/damon/sysfs_refresh: test kdamond refresh_ms
Date: Mon, 29 Jun 2026 07:49:26 -0700
Writing a non-zero value to a kdamond's 'refresh_ms' sysfs file should make DAMON periodically update the read-only sysfs files on its own, without the user writing update keywords such as 'update_schemes_stats' to the 'state' file. This behavior has no test coverage.
Add a test that starts a kdamond with refresh_ms set and a 'stat' scheme whose default access pattern matches every monitored region, then polls the scheme's 'nr_tried' stats file directly, without requesting an update. The value can become non-zero only via the periodic refresh, so the test confirms refresh_ms works; with refresh_ms disabled the stat stays zero and the test fails.
---
tools/testing/selftests/damon/Makefile | 1 tools/testing/selftests/damon/sysfs_refresh.py | 75 +++++++++++++++ 2 files changed, 76 insertions(+)
tools/testing/selftests/damon/Makefile renamed from tools/testing/selftests/damon/Makefile~selftests-damon-sysfs_refresh-test-kdamond-refresh_ms +1 -0
@@ -13,6 +13,7 @@ TEST_PROGS += sysfs.py TEST_PROGS += sysfs_update_schemes_tried_regions_wss_estimation.py TEST_PROGS += damos_quota.py damos_quota_goal.py damos_apply_interval.py TEST_PROGS += damos_tried_regions.py damon_nr_regions.py +TEST_PROGS += sysfs_refresh.py TEST_PROGS += reclaim.sh lru_sort.sh # regression tests (reproducers of previously found bugs)
tools/testing/selftests/damon/sysfs_refresh.py new file +75 -0
75 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are