]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
libbpf: make libbpf_errno.c into more generic libbpf_utils.c
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 1 Oct 2025 17:13:22 +0000 (10:13 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 1 Oct 2025 22:27:24 +0000 (15:27 -0700)
Libbpf is missing one convenient place to put common "utils"-like code
that is generic and usable from multiple places. Use libbpf_errno.c as
the base for more generic libbpf_utils.c.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20251001171326.3883055-2-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
tools/lib/bpf/Build
tools/lib/bpf/libbpf_utils.c [moved from tools/lib/bpf/libbpf_errno.c with 100% similarity]

index e2cd558ca0b41859ff4cacc8218b6d7685ba1127..c30927135fd6f0e98a54cf8681e52d450519e28f 100644 (file)
@@ -1,4 +1,4 @@
-libbpf-y := libbpf.o bpf.o nlattr.o btf.o libbpf_errno.o str_error.o \
+libbpf-y := libbpf.o bpf.o nlattr.o btf.o libbpf_utils.o str_error.o \
            netlink.o bpf_prog_linfo.o libbpf_probes.o hashmap.o \
            btf_dump.o ringbuf.o strset.o linker.o gen_loader.o relo_core.o \
            usdt.o zip.o elf.o features.o btf_iter.o btf_relocate.o