libbpf: Split feature detectors definitions from cached results
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 24 Jan 2024 02:21:18 +0000 (18:21 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Jan 2024 00:21:02 +0000 (16:21 -0800)
commitea4d587354eb5e32dfa93cebb055b072f518b193
treec017487dd6721f90b5be6d2be7b78aba4ddedf17
parent0350f9d99ee538f2ccf179f0216e704a5f39b317
libbpf: Split feature detectors definitions from cached results

Split a list of supported feature detectors with their corresponding
callbacks from actual cached supported/missing values. This will allow
to have more flexible per-token or per-object feature detectors in
subsequent refactorings.

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-22-andrii@kernel.org
tools/lib/bpf/libbpf.c