Skip to contentSkip to conversation

Add mincore() test for pages cached by another process

PATCH New Shwetha Subramanian 3 participants 3 messages Aug 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Add mincore() test for pages cached by another process

It tests the result of mincore when memory is mapped and cached by another process. A file is mapped in both parent and child process.Then the mapped memory is accessed in the child process. The results of mincore are tested in the parent process.

References:#460

---
Changes from v2
Removed SAFE_MMAP() from child and parent and moved it to before fork

 runtest/syscalls                              |   1 +
 testcases/kernel/syscalls/mincore/.gitignore  |   1 +
 testcases/kernel/syscalls/mincore/mincore04.c | 112 ++++++++++++++++++
 3 files changed, 114 insertions(+)
 create mode 100644 testcases/kernel/syscalls/mincore/mincore04.c
runtest/syscalls +1 -0
index 70b3277d3..796d2de82 100644
@@ -879,6 +879,7 @@ open_tree02 open_tree02
 mincore01 mincore01
 mincore02 mincore02
 mincore03 mincore03
+mincore04 mincore04
 
 madvise01 madvise01
 madvise02 madvise02
testcases/kernel/syscalls/mincore/.gitignore +1 -0
index 71c3e9864..25a5e8ab1 100644
@@ -1,3 +1,4 @@
 /mincore01
 /mincore02
 /mincore03
+/mincore04
testcases/kernel/syscalls/mincore/mincore04.c new file +112 -0

112 lines not on this page · raw message

Signature · 1 line
2.20.1
#1 lore raw

PATCH v3 1/1 Add mincore() test for pages cached by another process

----- Original Message -----

Quoted 10 lines

It tests the result of mincore when memory is mapped and cached by another process. A file is mapped in both parent and child process.Then the mapped memory is accessed in the child process. The results of mincore are tested in the parent process.

References:#460

#2 lore raw

PATCH v3 1/1 Add mincore() test for pages cached by another process

In reply to Shwetha Subramanian

Hi,

Quoted 9 lines

It tests the result of mincore when memory is mapped and cached by another process. A file is mapped in both parent and child process.Then the mapped memory is accessed in the child process. The results of mincore are tested in the parent process.

References:#460

Thanks for your patch, merged!

Kind regards,
Petr