linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC Patch 0/2] selftests/mm: assert rmap behave as expected
@ 2025-06-04  8:21 Wei Yang
  2025-06-04  8:21 ` [RFC Patch 1/2] selftests/mm: put general ksm operation into vm_util Wei Yang
  2025-06-04  8:21 ` [RFC Patch 2/2] selftests/mm: assert rmap behave as expected Wei Yang
  0 siblings, 2 replies; 9+ messages in thread
From: Wei Yang @ 2025-06-04  8:21 UTC (permalink / raw)
  To: akpm, david, lorenzo.stoakes, riel, Liam.Howlett, vbabka,
	harry.yoo
  Cc: linux-mm, linux-kselftest, Wei Yang

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-07-14 14:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-04  8:21 [RFC Patch 0/2] selftests/mm: assert rmap behave as expected Wei Yang
2025-06-04  8:21 ` [RFC Patch 1/2] selftests/mm: put general ksm operation into vm_util Wei Yang
2025-07-11 15:37   ` David Hildenbrand
2025-07-14  2:45     ` Wei Yang
2025-06-04  8:21 ` [RFC Patch 2/2] selftests/mm: assert rmap behave as expected Wei Yang
2025-06-04  8:34   ` Wei Yang
2025-07-11 15:39     ` David Hildenbrand
2025-07-14 14:42       ` Wei Yang
2025-07-14 14:45         ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).