selftests/mm: pagemap_scan ioctl: add PFN ZERO test cases
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Mon, 7 Jul 2025 07:33:20 +0000 (12:33 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:44 +0000 (18:59 -0700)
commitf73858d5ef93cb880aca64d826b4e3ca8b55365a
tree9b506cc5750aa9401172456989755a8a006dff75
parent0b473f9e6eace01bf5d450fd696119e827c5fa5d
selftests/mm: pagemap_scan ioctl: add PFN ZERO test cases

Add test cases to test the correctness of PFN ZERO flag of pagemap_scan
ioctl.  Test with normal pages backed memory and huge pages backed memory.

Link: https://lkml.kernel.org/r/20250707073321.106431-1-usama.anjum@collabora.com
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/cow.c
tools/testing/selftests/mm/pagemap_ioctl.c
tools/testing/selftests/mm/vm_util.c
tools/testing/selftests/mm/vm_util.h