aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/mm/vm_util.h
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <[email protected]>2025-07-07 07:33:20 +0000
committerAndrew Morton <[email protected]>2025-07-20 01:59:44 +0000
commitf73858d5ef93cb880aca64d826b4e3ca8b55365a (patch)
tree9b506cc5750aa9401172456989755a8a006dff75 /tools/testing/selftests/mm/vm_util.h
parentDocs/mm/damon/maintainer-profile: update for mm-new tree (diff)
downloadkernel-f73858d5ef93cb880aca64d826b4e3ca8b55365a.tar.gz
kernel-f73858d5ef93cb880aca64d826b4e3ca8b55365a.zip
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/[email protected] Signed-off-by: Muhammad Usama Anjum <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Muhammad Usama Anjum <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/mm/vm_util.h')
-rw-r--r--tools/testing/selftests/mm/vm_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/mm/vm_util.h b/tools/testing/selftests/mm/vm_util.h
index 797c24215b17..2b154c287591 100644
--- a/tools/testing/selftests/mm/vm_util.h
+++ b/tools/testing/selftests/mm/vm_util.h
@@ -44,6 +44,8 @@ static inline unsigned int pshift(void)
return __page_shift;
}
+bool detect_huge_zeropage(void);
+
/*
* Plan 9 FS has bugs (at least on QEMU) where certain operations fail with
* ENOENT on unlinked files. See