]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/damon: add python and drgn-based DAMON sysfs test
authorSeongJae Park <sj@kernel.org>
Sat, 28 Jun 2025 16:04:25 +0000 (09:04 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:20 +0000 (16:38 -0700)
commit4ece01897627ddeefcede4ac709cd99763994dc4
tree69f0934001ff747c110b4fbb3f34c4cedc0a8932
parente227472ebf00b6b5187915826c41258c472edb0a
selftests/damon: add python and drgn-based DAMON sysfs test

Add a python-written DAMON sysfs functionality selftest.  It sets DAMON
parameters using Python module _damon_sysfs, reads updated kernel internal
DAMON status and parameters using a 'drgn' script, namely
drgn_dump_damon_status.py, and compare if the resulted DAMON internal
status is as expected.  The test is very minimum at the moment.

Link: https://lkml.kernel.org/r/20250628160428.53115-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/Makefile
tools/testing/selftests/damon/sysfs.py [new file with mode: 0755]