Add mincore() test for pages cached by another process
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
@@ -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
@@ -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
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
Signed-off-by Shwetha Subramanian. <[email protected]>Reviewed-by Vijay Kumar B. <[email protected]>
PATCH v3 1/1 Add mincore() test for pages cached by another process
In reply to Shwetha SubramanianHi,
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
Signed-off-by Shwetha Subramanian. <[email protected]>Reviewed-by Vijay Kumar B. <[email protected]>
Thanks for your patch, merged!
Kind regards,
Petr