diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2021-01-11 23:55:19 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2021-01-12 17:24:30 -0800 |
| commit | 284d2587ea8a96f97ca519a3de683ff226e9e2b3 (patch) | |
| tree | 4561089bac28f2ff31247f077824eccf570cfbe2 /tools/testing/selftests/bpf/prog_tests/ksyms_module.c | |
| parent | bpf: Support BPF ksym variables in kernel modules (diff) | |
| download | linux-284d2587ea8a96f97ca519a3de683ff226e9e2b3.tar.gz linux-284d2587ea8a96f97ca519a3de683ff226e9e2b3.zip | |
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
