mirror-linux/tools/testing/selftests/damon
SeongJae Park 675774adbe selftests/damon/sysfs.py: merge DAMON status dumping into commitment assertion
For each test case, sysfs.py makes changes to DAMON, dumps DAMON internal
status and asserts the expectation is met.  The dumping part should be the
same for all cases, so it is duplicated for each test case.  Which means
it is easy to make mistakes.  Actually a few of those duplicates are not
turning DAMON off in case of the dumping failure.  It makes following
selftests that need to turn DAMON on fails with -EBUSY.  Merge the status
dumping into commitment assertion with proper dumping failure handling, to
deduplicate and avoid the unnecessary following tests failures.

Link: https://lkml.kernel.org/r/20251112154114.66053-8-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Bill Wendling <morbo@google.com>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Gow <davidgow@google.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-11-20 13:44:01 -08:00
..
.gitignore selftests/damon: remove tests for DAMON debugfs interface 2025-01-25 20:22:29 -08:00
Makefile selftests/damon: fix damon selftests by installing _common.sh 2025-09-13 16:54:59 -07:00
_common.sh selftests/damon: introduce _common.sh to host shared function 2025-07-26 15:08:21 -07:00
_damon_sysfs.py selftests/damon/_damon_sysfs: support obsolete_target file 2025-11-16 17:28:24 -08:00
access_memory.c
access_memory_even.c selftests/damon/access_memory_even: remove unused header file 2025-09-13 16:55:02 -07:00
config selftests/damon/config: remove configs for DAMON debugfs interface selftests 2025-01-25 20:22:29 -08:00
damon_nr_regions.py selftests/damon/damon_nr_regions: sort collected regiosn before checking with min/max boundaries 2025-03-05 21:36:16 -08:00
damos_apply_interval.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00
damos_quota.py selftests/damon/damos_quota: make real expectation of quota exceeds 2025-03-05 21:36:16 -08:00
damos_quota_goal.py selftests/damon/damos_quota_goal: handle minimum quota that cannot be further reduced 2025-03-05 21:36:12 -08:00
damos_tried_regions.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00
drgn_dump_damon_status.py mm/damon: rename damos->filters to damos->core_filters 2025-11-20 13:44:01 -08:00
lru_sort.sh selftests/damon: introduce _common.sh to host shared function 2025-07-26 15:08:21 -07:00
reclaim.sh selftests/damon: introduce _common.sh to host shared function 2025-07-26 15:08:21 -07:00
sysfs.py selftests/damon/sysfs.py: merge DAMON status dumping into commitment assertion 2025-11-20 13:44:01 -08:00
sysfs.sh selftests/damon: introduce _common.sh to host shared function 2025-07-26 15:08:21 -07:00
sysfs_memcg_path_leak.sh selftets/damon: add a test for memcg_path leak 2025-07-09 22:42:19 -07:00
sysfs_no_op_commit_break.py selftests/damon: test no-op commit broke DAMON status 2025-09-13 16:54:55 -07:00
sysfs_update_removed_scheme_dir.sh selftests/damon: introduce _common.sh to host shared function 2025-07-26 15:08:21 -07:00
sysfs_update_schemes_tried_regions_hang.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00
sysfs_update_schemes_tried_regions_wss_estimation.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00