Skip to contentSkip to conversation

mincore05: Add test for per-page residency accuracy

PATCH New Pavithra 1 participant 1 message Nov 5

lore
Share & tools
lore

Pavithra

author
#0 lore raw

PATCH 1/1 mincore05: Add test for per-page residency accuracy

Test that mincore() correctly reports per-page residency for a partially faulted anonymous mapping. Even-indexed pages are written and mlocked; odd-indexed pages are left untouched. The vec[] bitmap is verified to match exactly.

---
 runtest/syscalls                              |  1 +
 testcases/kernel/syscalls/mincore/.gitignore  |  1 +
 testcases/kernel/syscalls/mincore/mincore05.c | 94 +++++++++++++++++++
 3 files changed, 96 insertions(+)
 create mode 100644 testcases/kernel/syscalls/mincore/mincore05.c
runtest/syscalls +1 -0
index ca190dd97..28abac41c 100644
@@ -1045,6 +1045,7 @@ mincore01 mincore01
 mincore02 mincore02
 mincore03 mincore03
 mincore04 mincore04
+mincore05 mincore05
 
 madvise01 madvise01
 madvise02 madvise02
testcases/kernel/syscalls/mincore/.gitignore +1 -0
index 25a5e8ab1..406b47749 100644
@@ -2,3 +2,4 @@
 /mincore02
 /mincore03
 /mincore04
+/mincore05
testcases/kernel/syscalls/mincore/mincore05.c new file +92 -0

92 lines not on this page · raw message

Signature · 5 lines
2.55.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp