selftests/bpf: Add tests for automatic map unpinning on load failure
authorToke Høiland-Jørgensen <toke@redhat.com>
Sat, 9 Nov 2019 20:37:28 +0000 (21:37 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 11 Nov 2019 03:26:30 +0000 (19:26 -0800)
commit9c4e395a1e8c1dc14189b88f24d111f80353b9a4
tree7d02d4ac8b61e484f5c2e40bfa18bdd5af46e953
parentec6d5f47bfe36f46aa0de707e5beb2f58d96b76d
selftests/bpf: Add tests for automatic map unpinning on load failure

This add tests for the different variations of automatic map unpinning on
load failure.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/157333184838.88376.8243704248624814775.stgit@toke.dk
tools/testing/selftests/bpf/prog_tests/pinning.c
tools/testing/selftests/bpf/progs/test_pinning.c