aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/ksyms_module.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-01-11 23:55:19 -0800
committerAlexei Starovoitov <ast@kernel.org>2021-01-12 17:24:30 -0800
commit284d2587ea8a96f97ca519a3de683ff226e9e2b3 (patch)
tree4561089bac28f2ff31247f077824eccf570cfbe2 /tools/testing/selftests/bpf/prog_tests/ksyms_module.c
parent541c3bad8dc51b253ba8686d0cd7628e6b9b5f4c (diff)
libbpf: Support kernel module ksym externs
Add support for searching for ksym externs not just in vmlinux BTF, but across all module BTFs, similarly to how it's done for CO-RE relocations. Kernels that expose module BTFs through sysfs are assumed to support new ldimm64 instruction extension with BTF FD provided in insn[1].imm field, so no extra feature detection is performed. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Acked-by: Hao Luo <haoluo@google.com> Link: https://lore.kernel.org/bpf/20210112075520.4103414-7-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/ksyms_module.c')
0 files changed, 0 insertions, 0 deletions