summaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2024-10-11 00:17:31 +0300
committerAlexei Starovoitov <ast@kernel.org>2024-10-11 21:16:59 +0300
commit82370ed5ade58d99484a607a6000fc8333921c63 (patch)
tree7caa49e4b80747b45245e427c03e1f40e27b7acc /kernel/bpf/arraymap.c
parentdb089c9158c1d535a36dfc010e5db37fccea2561 (diff)
downloadlinux-82370ed5ade58d99484a607a6000fc8333921c63.tar.xz
selftests/bpf: add subprog to BPF object file with no entry programs
Add a subprogram to BPF object file that otherwise has no entry BPF programs to validate that libbpf can still load this correctly. Until this was fixed, user could expect this very confusing error message: libbpf: prog 'dangling_subprog': missing BPF prog type, check ELF section name '.text' libbpf: prog 'dangling_subprog': failed to load: -22 libbpf: failed to load object 'struct_ops_detach' libbpf: failed to load BPF skeleton 'struct_ops_detach': -22 Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20241010211731.4121837-2-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions