mmapstress01: refactor to ltp framework
v6 cover mmapstress01: refactor to ltp framework
v5->v6:
* revert pidarray removal because children use the array index to determine read/write locations
* add option to specify pattern for reproducibility
* set default nprocs to ncpus with range between 1-20
* remove more comments
v4->v5:
* reformat top level comment to docparse format
* reduce amount of verbose comments
* clean up file size bounds definitions
* make finished variable volatile for >1 retries
* remove unnecessary pidarray because offloaded to test harness
* remove unnecessary sig blocks
v3->v4:
* squash previous changes
* set defaults of nprocs=20 and max_runtime=12
* clean up comments
* return TBROK instead of TFAIL for unexpected failures
v2->v3:
* apply make check lint suggestions
* refactor cleanup
* use SAFE_FORK
* update license
v1->v2:
* clean up formatting
* remove accidental change to header comment
* use SAFE_MMAP
v0->v1:
* use tst_test framework
* use FILE_OFFSET_BITS=64 instead of LARGE_FILE
* use safe macros
Edward Liaw (1):
mmapstress01: refactor to tst_test framework
testcases/kernel/mem/mmapstress/Makefile | 2 + .../kernel/mem/mmapstress/mmapstress01.c | 890 ++++++------------ 2 files changed, 265 insertions(+), 627 deletions(-)
Signature · 5 lines
2.38.1.273.g43a17bfeac-goog -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v6 1/1 mmapstress01: refactor to tst_test framework
Use ltp framework and apply make check corrections. Reorder functions and variables. Use safe macros.
Drop leavefile option.
Build tests with FILE_OFFSET_BITS=64 instead of doing LARGE_FILE checks to switch between 32 and 64 bit types and syscalls.
Define fsize bounds by file offset bits.
Move sighandler to setup and remove sig blocks.
Add option to specify pattern.
Set default nprocs to ncpus with min of 1 and max of 20.
--- testcases/kernel/mem/mmapstress/Makefile | 2 + .../kernel/mem/mmapstress/mmapstress01.c | 890 ++++++------------ 2 files changed, 265 insertions(+), 627 deletions(-)
testcases/kernel/mem/mmapstress/Makefile +2 -0
@@ -5,3 +5,5 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk + +mmapstress01: CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
testcases/kernel/mem/mmapstress/mmapstress01.c +263 -627
988 lines not on this page · raw message
Signature · 5 lines
2.38.1.273.g43a17bfeac-goog -- Mailing list info: https://lists.linux.it/listinfo/ltp