linux-bl808/tools/lib/bpf
Alexei Starovoitov 259172bb65 libbpf: Fix gen_loader assumption on number of programs.
libbpf's obj->nr_programs includes static and global functions. That number
could be higher than the actual number of bpf programs going be loaded by
gen_loader. Passing larger nr_programs to bpf_gen__init() doesn't hurt. Those
exra stack slots will stay as zero. bpf_gen__finish() needs to check that
actual number of progs that gen_loader saw is less than or equal to
obj->nr_programs.

Fixes: ba05fd36b8 ("libbpf: Perform map fd cleanup for gen_loader in case of error")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2021-12-11 17:16:19 -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 Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-10 15:56:13 -08:00
bpf_helpers.h
bpf_prog_linfo.c
bpf_tracing.h
btf.c libbpf: Fix typo in btf__dedup@LIBBPF_0.0.2 definition 2021-12-10 15:35:29 -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: Fix gen_loader assumption on number of programs. 2021-12-11 17:16:19 -08:00
hashmap.c
hashmap.h
libbpf.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-10 15:56:13 -08:00
libbpf.h libbpf: Deprecate bpf_object__load_xattr() 2021-12-10 15:29:18 -08:00
libbpf.map libbpf: Add per-program log buffer setter and getter 2021-12-10 15:29:18 -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