libbpf: move feature detection code into its own file
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 13 Dec 2023 19:08:36 +0000 (11:08 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 Dec 2023 23:47:05 +0000 (15:47 -0800)
commitab8fc393b27cd2d6dd1ced1ba2358ddcd123fc15
tree524a70762bbe40613a41701e3a1487d3b4f8f62c
parent29c302a2e265a356434b005155990a9e766db75d
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.

Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20231213190842.3844987-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@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