Fix and improve libbpf feature-probing APIs. Name them consistently and deprecated previous inconsistently named APIs. v1->v2: - fixed misleading comment and added acks (Dave). Cc: Dave Marchevsky <davemarchevsky@xxxxxx> Andrii Nakryiko (3): libbpf: rework feature-probing APIs selftests/bpf: add libbpf feature-probing API selftests bpftool: reimplement large insn size limit feature probing tools/bpf/bpftool/feature.c | 26 +- tools/lib/bpf/libbpf.h | 52 +++- tools/lib/bpf/libbpf.map | 3 + tools/lib/bpf/libbpf_probes.c | 235 ++++++++++++++---- tools/testing/selftests/bpf/config | 2 + .../selftests/bpf/prog_tests/libbpf_probes.c | 124 +++++++++ 6 files changed, 385 insertions(+), 57 deletions(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/libbpf_probes.c -- 2.30.2