selftests/bpf: Switch to ".bss"/".rodata"/".data" lookups for internal maps
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 21 Oct 2021 01:44:04 +0000 (18:44 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Oct 2021 00:10:11 +0000 (17:10 -0700)
commit4f2511e1990985103929ab799fb3ebca81969b77
tree788f588b995b81fe8bcc9c639fefc8b6f866a379
parent26071635ac5ecd8276bf3bdfc3ea1128c93ac722
selftests/bpf: Switch to ".bss"/".rodata"/".data" lookups for internal maps

Utilize libbpf's feature of allowing to lookup internal maps by their
ELF section names. No need to guess or calculate the exact truncated
prefix taken from the object name.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20211021014404.2635234-11-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/core_autosize.c
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/prog_tests/global_data.c
tools/testing/selftests/bpf/prog_tests/global_data_init.c
tools/testing/selftests/bpf/prog_tests/kfree_skb.c
tools/testing/selftests/bpf/prog_tests/rdonly_maps.c