selftests: vm -- Add rlimit data selftest
Subsystems (2)
RFC 2/2 selftests: vm -- Add rlimit data selftest
Just setup RLIMIT_DATA limit and play with anon memory accounting.
CC Quentin Casasnovas <[email protected]>
CC Vegard Nossum <[email protected]>
CC Linus Torvalds <[email protected]>
CC Willy Tarreau <[email protected]>
CC Andy Lutomirski <[email protected]>
CC Kees Cook <[email protected]>
CC Vladimir Davydov <[email protected]>
CC Konstantin Khlebnikov <[email protected]>
CC Pavel Emelyanov <[email protected]>
CC Vladimir Davydov <[email protected]>
CC Peter Zijlstra <[email protected]>
Signed-off-by Cyrill Gorcunov <[email protected]>
--- tools/testing/selftests/vm/Makefile | 1 tools/testing/selftests/vm/rlimit-data.c | 201 +++++++++++++++++++++++++++++++ tools/testing/selftests/vm/run_vmtests | 4 3 files changed, 204 insertions(+), 2 deletions(-)
tools/testing/selftests/vm/Makefile +1 -0
@@ -10,6 +10,7 @@ BINARIES += on-fault-limit BINARIES += thuge-gen BINARIES += transhuge-stress BINARIES += userfaultfd +BINARIES += rlimit-data all: $(BINARIES) %: %.c
tools/testing/selftests/vm/rlimit-data.c new file +201 -0
201 lines not on this page · raw message
tools/testing/selftests/vm/run_vmtests +2 -2
@@ -131,9 +131,9 @@ else fi echo "--------------------" -echo "running mlock2-tests" +echo "running rlimit-data" echo "--------------------" -./mlock2-tests +./rlimit-data if [ $? -ne 0 ]; then echo "[FAIL]" exitcode=1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>