diff options
author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2023-03-25 21:59:02 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-03-28 18:28:33 +0200 |
commit | 5290586186d24d81d7f8eee4ba837f0cbc304b09 (patch) | |
tree | dbc06c973701400df5deef669d764a062005760a /tools/testing/selftests/prctl/Makefile | |
parent | selftests: sched: Add more core schedule prctl calls (diff) | |
download | linux-5290586186d24d81d7f8eee4ba837f0cbc304b09.tar.xz linux-5290586186d24d81d7f8eee4ba837f0cbc304b09.zip |
selftests: prctl: Add new prctl test for PR_SET_VMA action
This patch will add the new test, which covers the prctl call with
PR_SET_VMA command. The test tries to give a name to the anonymous
VMA within the process memory map, and then checks the result of
the operation by parsing 'maps' virtual file.
Additionally, the test tries to call the prctl PR_SET_VMA command
with invalid arguments, and checks the error codes for correctness.
At the moment anonymous VMA naming through prctl call functionality
is not covered with any tests, so I think implementing it makes sense.
In version 2 of this patch I consider the selftest Makefile rule about
TARGETS entries order - I moved the 'prctl' entry in the Makefile to
follow the lexicographic order. In version 1 it was placed at the
end of the list.
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/prctl/Makefile')
-rw-r--r-- | tools/testing/selftests/prctl/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/prctl/Makefile b/tools/testing/selftests/prctl/Makefile index c7923b205222..c058b81eeb41 100644 --- a/tools/testing/selftests/prctl/Makefile +++ b/tools/testing/selftests/prctl/Makefile @@ -5,7 +5,7 @@ ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) ifeq ($(ARCH),x86) TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \ - disable-tsc-test + disable-tsc-test set-anon-vma-name-test all: $(TEST_PROGS) include ../lib.mk |