libbpf: Move feature detection code into its own file
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 24 Jan 2024 02:21:20 +0000 (18:21 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Jan 2024 00:21:02 +0000 (16:21 -0800)
commit05f9cdd55d61cf9c6283fd3dc0edc7cad09bd7fe
treebeee721bec04ba2a6e3e9a21adfd8183827ca4d3
parentd6dd1d49367ab03832b3c4b6f8211765d488c82b
libbpf: Move feature detection code into its own file

It's quite a lot of well isolated code, so it seems like a good
candidate to move it out of libbpf.c to reduce its size.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20240124022127.2379740-24-andrii@kernel.org
tools/lib/bpf/Build
tools/lib/bpf/elf.c
tools/lib/bpf/features.c [new file with mode: 0644]
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h
tools/lib/bpf/str_error.h