OSDN Git Service

selftests/bpf: Remove explicit setrlimit(RLIMIT_MEMLOCK) in main selftests
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Dec 2021 19:59:04 +0000 (11:59 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 14 Dec 2021 21:16:54 +0000 (22:16 +0100)
commitc164b8b40422ef5c643d08bbc63280e1e1610573
treea0abd59a52337b6683405d303b70e32dc538c96b
parente542f2c4cd16d49392abf3349341d58153d3c603
selftests/bpf: Remove explicit setrlimit(RLIMIT_MEMLOCK) in main selftests

As libbpf now is able to automatically take care of RLIMIT_MEMLOCK
increase (or skip it altogether on recent enough kernels), remove
explicit setrlimit() invocations in bench, test_maps, test_verifier, and
test_progs.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211214195904.1785155-3-andrii@kernel.org
tools/testing/selftests/bpf/bench.c
tools/testing/selftests/bpf/prog_tests/btf.c
tools/testing/selftests/bpf/prog_tests/select_reuseport.c
tools/testing/selftests/bpf/prog_tests/sk_lookup.c
tools/testing/selftests/bpf/prog_tests/sock_fields.c
tools/testing/selftests/bpf/test_maps.c
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_verifier.c