selftests: Add tests for automatic map pinning
authorToke Høiland-Jørgensen <toke@redhat.com>
Sat, 2 Nov 2019 11:09:42 +0000 (12:09 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 2 Nov 2019 19:35:07 +0000 (12:35 -0700)
commit2f4a32cc83a584ac3669d44fa2aa1d7f115d44c1
tree8f65a718732bf3935e040a7c745b83ca70362ca3
parent57a00f41644f20b11c12a27061d814655f633544
selftests: Add tests for automatic map pinning

This adds a new BPF selftest to exercise the new automatic map pinning
code.

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>
Link: https://lore.kernel.org/bpf/157269298209.394725.15420085139296213182.stgit@toke.dk
tools/testing/selftests/bpf/prog_tests/pinning.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_pinning.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_pinning_invalid.c [new file with mode: 0644]