bpf: selftests: test_loader: Support __btf_path() annotation
authorDaniel Xu <dxu@dxuuu.xyz>
Mon, 11 Dec 2023 20:20:08 +0000 (13:20 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 13 Dec 2023 23:42:19 +0000 (15:42 -0800)
commit7d19c00e9abc8ad3b3b72a1989331f45287e6bf5
tree43d32ff70ef9ac3c32d6069727533e8221773375
parent2f70803532e9b7f14897d17f8944d431755661a7
bpf: selftests: test_loader: Support __btf_path() annotation

This commit adds support for per-prog btf_custom_path. This is necessary
for testing CO-RE relocations on non-vmlinux types using test_loader
infrastructure.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/660ea7f2fdbdd5103bc1af87c9fc931f05327926.1702325874.git.dxu@dxuuu.xyz
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/progs/bpf_misc.h
tools/testing/selftests/bpf/test_loader.c