Skip to content

mm/damon: add kunit and selftests for probes and probe weights

SJ Park damon linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] selftests-damon-sysfspy-test-damon-probes.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied 6/6

Changes from RFC v1 from the cover letter

- RFC v1: https://lore.kernel.org/[email protected]
- Fix a typo, memory leak and NULL dereference in kunit test.
- Fix ignored error in selftest.

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6mm/damon/tests/core-kunit: test damon_commit_filter()mm/damon/tests/core-kunit.h+40 -00 repliesApplied
2/6mm/damon/tests/core-kunit: add damon_commit_probes() testmm/damon/tests/core-kunit.h+84 -00 repliesApplied
3/6selftests/damon/_damon_sysfs: implement DamonProbestools/testing/selftests/damon/_damon_sysfs.py+124 -10 repliesApplied
4/6selftests/damon/drgn_dump_damon_status: dump probestools/testing/selftests/damon/drgn_dump_damon_status.py+32 -01 replyApplied
5/6selftests/damon/sysfs.py: extend commit assertion function for probestools/testing/selftests/damon/sysfs.py+19 -00 repliesApplied
6/6selftests/damon/sysfs.py: test damon probestools/testing/selftests/damon/sysfs.py+15 -10 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] mm/damon: add kunit and selftests for probes and probe weights

DAMON recently introduced probes and probe weights. Add kunit and selftests for ensuring the parameters for features can be set using the core API and the sysfs ABI, respectively.

Changes from RFC v1.1
- RFC v1.1: https://lore.kernel.org/[email protected]
- Drop RFC tag.
- Rebase to latest mm-new.
Changes from RFC v1
- RFC v1: https://lore.kernel.org/[email protected]
- Fix a typo, memory leak and NULL dereference in kunit test.
- Fix ignored error in selftest.

SJ Park (6):
mm/damon/tests/core-kunit: test damon_commit_filter() mm/damon/tests/core-kunit: add damon_commit_probes() test selftests/damon/_damon_sysfs: implement DamonProbes selftests/damon/drgn_dump_damon_status: dump probes selftests/damon/sysfs.py: extend commit assertion function for probes selftests/damon/sysfs.py: test damon probes

 mm/damon/tests/core-kunit.h                   | 124 +++++++++++++++++
 tools/testing/selftests/damon/_damon_sysfs.py | 125 +++++++++++++++++-
 .../selftests/damon/drgn_dump_damon_status.py |  32 +++++
 tools/testing/selftests/damon/sysfs.py        |  35 ++++-
 4 files changed, 314 insertions(+), 2 deletions(-)

base-commit: 7b23d7e8fa8464c92cf577d01b1ccc2f9a991cba

Signature · 1 line
2.47.3