selftest/bpf: Test pinning map with reused map fd
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 6 Oct 2020 02:13:45 +0000 (10:13 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 6 Oct 2020 18:10:20 +0000 (11:10 -0700)
commit44c4aa2bd1511ebd7f24d4a2eb7a26053d51d6ae
treee9ccd6cea20c01bdbcfa418183639fc4baa4c578
parent2c193d32caee83322a8511a88ba0cd097bba73f1
selftest/bpf: Test pinning map with reused map fd

This add a test to make sure that we can still pin maps with
reused map fd.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201006021345.3817033-4-liuhangbin@gmail.com
tools/testing/selftests/bpf/prog_tests/pinning.c