bpf: unify rlimit handling in selftests
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 26 Feb 2018 21:34:32 +0000 (22:34 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 27 Feb 2018 04:11:23 +0000 (20:11 -0800)
commitfe8d662aef26394388bfcd3b96ce123b6d33044b
treec236669015f5b2b435d0283f3d6f62f30cdc552c
parent3808b51911fe1a2bf8d6f4f2836d4c51aa29a6fd
bpf: unify rlimit handling in selftests

Unify memlock handling into bpf_rlimit.h and replace all occurences
in BPF kselftests with it.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_rlimit.h [new file with mode: 0644]
tools/testing/selftests/bpf/test_align.c
tools/testing/selftests/bpf/test_dev_cgroup.c
tools/testing/selftests/bpf/test_lpm_map.c
tools/testing/selftests/bpf/test_lru_map.c
tools/testing/selftests/bpf/test_maps.c
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_tag.c
tools/testing/selftests/bpf/test_tcpbpf_user.c
tools/testing/selftests/bpf/test_verifier.c
tools/testing/selftests/bpf/test_verifier_log.c