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 preparation to move ksm related operation into vm_util.
Patch 2 is the new test case.

Currently it covers following four scenarios:

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

Wei Yang (2):
  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       |  76 +--
 tools/testing/selftests/mm/rmap.c             | 466 ++++++++++++++++++
 tools/testing/selftests/mm/run_vmtests.sh     |   4 +
 tools/testing/selftests/mm/vm_util.c          |  71 +++
 tools/testing/selftests/mm/vm_util.h          |   7 +
 8 files changed, 563 insertions(+), 66 deletions(-)
 create mode 100644 tools/testing/selftests/mm/rmap.c

-- 
2.34.1


Reply via email to