]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49a50d95e784121f48478e6b1d8c4527863130b0
tree276cf5901a51ce01d1f62ae8d3e481cd2a3f5849
parent3135f4ac68447276ba366e62c95e550b5e856360
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