linux-bl808/tools/lib/bpf
Kumar Kartikeya Dwivedi 0270090d39 libbpf: Avoid double stores for success/failure case of ksym relocations
Instead, jump directly to success case stores in case ret >= 0, else do
the default 0 value store and jump over the success case. This is better
in terms of readability. Readjust the code for kfunc relocation as well
to follow a similar pattern, also leads to easier to follow code now.

Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20211122235733.634914-3-memxor@gmail.com
2021-11-30 15:48:14 -08:00
..
.gitignore
bpf.c bpf, mips: Fix build errors about __NR_bpf undeclared 2021-11-26 22:11:25 +01:00
bpf.h libbpf: Unify low-level map creation APIs w/ new bpf_map_create() 2021-11-25 23:35:46 +01:00
bpf_core_read.h libbpf: Fix endianness detection in BPF_CORE_READ_BITFIELD_PROBED() 2021-10-25 20:39:41 -07:00
bpf_endian.h
bpf_gen_internal.h libbpf: Unify low-level map creation APIs w/ new bpf_map_create() 2021-11-25 23:35:46 +01:00
bpf_helpers.h
bpf_prog_linfo.c
bpf_tracing.h riscv, libbpf: Add RISC-V (RV64) support to bpf_tracing.h 2021-11-01 17:08:21 +01:00
btf.c libbpf: Fix potential misaligned memory access in btf_ext__new() 2021-11-26 00:14:06 +01: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: Avoid double stores for success/failure case of ksym relocations 2021-11-30 15:48:14 -08:00
hashmap.c
hashmap.h
libbpf.c libbpf: Remove duplicate assignments 2021-11-30 15:33:57 +01:00
libbpf.h libbpf: Change bpf_program__set_extra_flags to bpf_program__set_flags 2021-11-19 14:21:37 -08:00
libbpf.map libbpf: Unify low-level map creation APIs w/ new bpf_map_create() 2021-11-25 23:35:46 +01:00
libbpf.pc.template
libbpf_common.h libbpf: Unify low-level BPF_PROG_LOAD APIs into bpf_prog_load() 2021-11-07 08:34:23 -08:00
libbpf_errno.c
libbpf_internal.h libbpf: Unify low-level map creation APIs w/ new bpf_map_create() 2021-11-25 23:35:46 +01:00
libbpf_legacy.h libbpf: Rename DECLARE_LIBBPF_OPTS into LIBBPF_OPTS 2021-11-07 08:34:22 -08:00
libbpf_probes.c libbpf: Use bpf_map_create() consistently internally 2021-11-25 23:35:46 +01:00
libbpf_version.h
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: Use __BYTE_ORDER__ 2021-10-25 20:39:41 -07:00
relo_core.h
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 libbpf: Deprecate AF_XDP support 2021-11-01 18:12:44 -07:00