selftests/bpf: Test bpf_map__set_autocreate() and related log fixup logic

Add a subtest that excercises bpf_map__set_autocreate() API and
validates that libbpf properly fixes up BPF verifier log with correct
map information.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220428041523.4089853-5-andrii@kernel.org
This commit is contained in:
Andrii Nakryiko 2022-04-27 21:15:23 -07:00 • committed by Alexei Starovoitov
commit 68964e1556
2 changed files with 62 additions and 1 deletions