selftests/bpf: Test bpf_map__set_autocreate() and related log fixup logic
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 28 Apr 2022 04:15:23 +0000 (21:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Apr 2022 03:03:29 +0000 (20:03 -0700)
commit68964e155677ab6eca21784a248b8e65fb745660
tree276cf5901a51ce01d1f62ae8d3e481cd2a3f5849
parentec41817b4af5114825621fe9b31cb861480f6cd7
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
tools/testing/selftests/bpf/prog_tests/log_fixup.c
tools/testing/selftests/bpf/progs/test_log_fixup.c