Skip to content

selftests/mm: assert rmap behave as expected

Wei Yang linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Changes in v1 from the cover letter

* open file in function itself instead of pass fd as paremeter
* fault in the region by accessing it instead of print content

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/mm: check a valid fd with negative valuetools/testing/selftests/mm/ksm_functional_tests.c+1 -13 replies
2/3selftests/mm: put general ksm operation into vm_utiltools/testing/selftests/mm/ksm_functional_tests.c tools/testing/selftests/mm/vm_util.c tools/testing/selftests/mm/vm_util.h+126 -875 replies
3/3selftests/mm: assert rmap behave as expectedMAINTAINERS tools/testing/selftests/mm/.gitignore tools/testing/selftests/mm/Makefile +2 more+479 -04 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] selftests/mm: assert rmap behave as expected

As David suggested, currently we don't have a high level test case to verify the behavior of rmap. This patch set introduce the verification on rmap by migration.

Patch 1 is a trivial cleanup.
Patch 2 is a preparation to move ksm related operation into vm_util. Patch 3 is the new test case.

Currently it covers following four scenarios:

* anonymous page
* shmem page
* pagecache page
* ksm page

RFC->v1:
* open file in function itself instead of pass fd as paremeter
* fault in the region by accessing it instead of print content

Wei Yang (3):
selftests/mm: check a valid fd with negative value selftests/mm: put general ksm operation into vm_util selftests/mm: assert rmap behave as expected

 MAINTAINERS                                   |   1 +
 tools/testing/selftests/mm/.gitignore         |   1 +
 tools/testing/selftests/mm/Makefile           |   3 +
 .../selftests/mm/ksm_functional_tests.c       |  95 +---
 tools/testing/selftests/mm/rmap.c             | 470 ++++++++++++++++++
 tools/testing/selftests/mm/run_vmtests.sh     |   4 +
 tools/testing/selftests/mm/vm_util.c          | 111 +++++
 tools/testing/selftests/mm/vm_util.h          |   7 +
 8 files changed, 605 insertions(+), 87 deletions(-)
 create mode 100644 tools/testing/selftests/mm/rmap.c
Signature · 1 line
2.34.1