Skip to content

RFC selftests/damon: add a test for obsolete_target sysfs file

SeongJae Park damon linux-kselftest linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4selftests/damon/_damon_sysfs: support obsolete_target filetools/testing/selftests/damon/_damon_sysfs.py+9 -20 replies
2/4drgn_dump_damon_status: dump damon_target->obsoletetools/testing/selftests/damon/drgn_dump_damon_status.py+1 -00 replies
3/4sysfs.py: extend assert_ctx_committed() for monitoring targetstools/testing/selftests/damon/sysfs.py+11 -00 replies
4/4selftests/damon/sysfs: add obsolete_target testtools/testing/selftests/damon/sysfs.py+37 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] selftests/damon: add a test for obsolete_target sysfs file

An RFC patch series [1] that add a new DAMON sysfs file for arbitrary targets removal is under review. Add a selftest for the feature. The new test uses the feature using the python wrapper of DAMON sysfs interface, and confirm the expected internal data structure change is made using drgn.

So this patch series may better to be a part of the other one [1] that introduces the obsolete_target file. But, because no significant change is requested on the series so far, I'm posting this as an individual RFC.

In the next version, I may merge the two series into one, to add all related changes at one step.

[1] https://lore.kernel.org/[email protected]

SeongJae Park (4):
selftests/damon/_damon_sysfs: support obsolete_target file
drgn_dump_damon_status: dump damon_target->obsolete sysfs.py: extend assert_ctx_committed() for monitoring targets selftests/damon/sysfs: add obsolete_target test

 tools/testing/selftests/damon/_damon_sysfs.py | 11 ++++-
 .../selftests/damon/drgn_dump_damon_status.py |  1 +
 tools/testing/selftests/damon/sysfs.py        | 48 +++++++++++++++++++
 3 files changed, 58 insertions(+), 2 deletions(-)

base-commit: 1aba8bd57e6aaa1c9e699c8de66bcc931d4b1116

Signature · 1 line
2.47.3