Skip to contentSkip to conversation

selftests-damon-drgn_dump_damon_status-dump-ctx-opsid.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 26, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled

     Subject: selftests/damon/drgn_dump_damon_status: dump ctx->ops.id

has been removed from the -mm tree. Its filename was
selftests-damon-drgn_dump_damon_status-dump-ctx-opsid.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 <[email protected]>
Subject: selftests/damon/drgn_dump_damon_status: dump ctx->ops.id
Date: Sun, 20 Jul 2025 10:16:40 -0700

drgn_dump_damon_status.py is a script for dumping DAMON internal status in json format. It is being used for seeing if DAMON parameters that are set using _damon_sysfs.py are actually passed to DAMON in the kernel space. It is, however, not dumping full DAMON internal status, and it makes increasing test coverage difficult. Add ctx->ops.id dumping for more tests.

---

 tools/testing/selftests/damon/drgn_dump_damon_status.py |    6 ++++++
 1 file changed, 6 insertions(+)
tools/testing/selftests/damon/drgn_dump_damon_status.py renamed from tools/testing/selftests/damon/drgn_dump_damon_status.py~selftests-damon-drgn_dump_damon_status-dump-ctx-opsid +6 -0
@@ -25,6 +25,11 @@ def to_dict(object, attr_name_converter)
         d[attr_name] = converter(getattr(object, attr_name))
     return d
 
+def ops_to_dict(ops):
+    return to_dict(ops, [
+        ['id', int],
+        ])
+
 def intervals_goal_to_dict(goal):
     return to_dict(goal, [
         ['access_bp', int],
@@ -148,6 +153,7 @@ def schemes_to_list(schemes):
 
 def damon_ctx_to_dict(ctx):
     return to_dict(ctx, [
+        ['ops', ops_to_dict],
         ['attrs', attrs_to_dict],
         ['adaptive_targets', targets_to_list],
         ['schemes', schemes_to_list],

_

Patches currently in -mm which might be from [email protected] are