* [merged mm-stable] selftests-damon-sysfspy-test-runtime-reduction-of-damon-parameters.patch removed from -mm tree
@ 2025-07-26 22:10 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-07-26 22:10 UTC (permalink / raw)
To: mm-commits, shuah, sj, akpm
The quilt patch titled
Subject: selftests/damon/sysfs.py: test runtime reduction of DAMON parameters
has been removed from the -mm tree. Its filename was
selftests-damon-sysfspy-test-runtime-reduction-of-damon-parameters.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: SeongJae Park <sj@kernel.org>
Subject: selftests/damon/sysfs.py: test runtime reduction of DAMON parameters
Date: Sun, 20 Jul 2025 10:16:52 -0700
sysfs.py is testing if non-default additional parameters can be committed.
Add a test case for further reducing the parameters to the default set.
Link: https://lkml.kernel.org/r/20250720171652.92309-23-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/sysfs.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
--- a/tools/testing/selftests/damon/sysfs.py~selftests-damon-sysfspy-test-runtime-reduction-of-damon-parameters
+++ a/tools/testing/selftests/damon/sysfs.py
@@ -252,6 +252,20 @@ def main():
assert_ctxs_committed(kdamonds.kdamonds[0].contexts, status['contexts'])
+ # test online commitment of minimum context.
+ context = _damon_sysfs.DamonCtx()
+ context.idx = 0
+ context.kdamond = kdamonds.kdamonds[0]
+ kdamonds.kdamonds[0].contexts = [context]
+ kdamonds.kdamonds[0].commit()
+
+ status, err = dump_damon_status_dict(kdamonds.kdamonds[0].pid)
+ if err is not None:
+ print(err)
+ exit(1)
+
+ assert_ctxs_committed(kdamonds.kdamonds[0].contexts, status['contexts'])
+
kdamonds.stop()
if __name__ == '__main__':
_
Patches currently in -mm which might be from sj@kernel.org are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-26 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-26 22:10 [merged mm-stable] selftests-damon-sysfspy-test-runtime-reduction-of-damon-parameters.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.