diff options
| author | Muhammad Usama Anjum <[email protected]> | 2025-07-07 07:33:20 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-07-20 01:59:44 +0000 |
| commit | f73858d5ef93cb880aca64d826b4e3ca8b55365a (patch) | |
| tree | 9b506cc5750aa9401172456989755a8a006dff75 /tools/testing/selftests/mm/vm_util.h | |
| parent | Docs/mm/damon/maintainer-profile: update for mm-new tree (diff) | |
| download | kernel-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.h | 2 |
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 |
