linux-bl808/tools/lib/bpf
Andrii Nakryiko 2eda2145eb libbpf: Preserve kernel error code and remove kprobe prog type guessing
Instead of rewriting error code returned by the kernel of prog load with
libbpf-sepcific variants pass through the original error.

There is now also no need to have a backup generic -LIBBPF_ERRNO__LOAD
fallback error as bpf_prog_load() guarantees that errno will be properly
set no matter what.

Also drop a completely outdated and pretty useless BPF_PROG_TYPE_KPROBE
guess logic. It's not necessary and neither it's helpful in modern BPF
applications.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211209193840.1248570-7-andrii@kernel.org
2021-12-10 15:29:18 -08:00
..
.gitignore
bpf.c libbpf: Add OPTS-based bpf_btf_load() API 2021-12-10 15:29:17 -08:00
bpf.h libbpf: Allow passing user log setting through bpf_object_open_opts 2021-12-10 15:29:17 -08:00
bpf_core_read.h
bpf_endian.h
bpf_gen_internal.h libbpf: Support init of inner maps in light skeleton. 2021-12-02 11:18:35 -08:00
bpf_helpers.h
bpf_prog_linfo.c
bpf_tracing.h
btf.c libbpf: Allow passing preallocated log_buf when loading BTF into kernel 2021-12-10 15:29:17 -08:00
btf.h libbpf: Fix potential misaligned memory access in btf_ext__new() 2021-11-26 00:14:06 +01:00
btf_dump.c libbpf: Silence uninitialized warning/error in btf_dump_dump_type_data 2021-11-29 09:36:44 -08:00
Build
gen_loader.c libbpf: Clean gen_loader's attach kind. 2021-12-02 11:18:35 -08:00
hashmap.c
hashmap.h
libbpf.c libbpf: Preserve kernel error code and remove kprobe prog type guessing 2021-12-10 15:29:18 -08:00
libbpf.h libbpf: Allow passing user log setting through bpf_object_open_opts 2021-12-10 15:29:17 -08:00
libbpf.map libbpf: Add OPTS-based bpf_btf_load() API 2021-12-10 15:29:17 -08:00
libbpf.pc.template
libbpf_common.h libbpf: Deprecate bpf_prog_load_xattr() API 2021-12-02 15:23:41 -08:00
libbpf_errno.c
libbpf_internal.h libbpf: Allow passing preallocated log_buf when loading BTF into kernel 2021-12-10 15:29:17 -08:00
libbpf_legacy.h libbpf: Rename DECLARE_LIBBPF_OPTS into LIBBPF_OPTS 2021-11-07 08:34:22 -08:00
libbpf_probes.c libbpf: Add OPTS-based bpf_btf_load() API 2021-12-10 15:29:17 -08:00
libbpf_version.h libbpf: Add API to get/set log_level at per-program level 2021-12-02 15:23:40 -08:00
linker.c libbpf: Fix using invalidated memory in bpf_linker 2021-11-26 00:15:03 +01:00
Makefile libbpf: Compile using -std=gnu89 2021-11-09 13:27:52 -08:00
netlink.c
nlattr.c
nlattr.h
relo_core.c libbpf: Reduce bpf_core_apply_relo_insn() stack usage. 2021-12-03 13:21:59 -08:00
relo_core.h libbpf: Reduce bpf_core_apply_relo_insn() stack usage. 2021-12-03 13:21:59 -08:00
ringbuf.c
skel_internal.h bpf, mips: Fix build errors about __NR_bpf undeclared 2021-11-26 22:11:25 +01:00
str_error.c
str_error.h
strset.c
strset.h
xsk.c libbpf: Prevent deprecation warnings in xsk.c 2021-11-25 23:35:46 +01:00
xsk.h