Skip to content

Revamp and fix libbpf's feature-probing APIs

Andrii Nakryiko bpf 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- fixed misleading comment and added acks (Dave).

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3libbpf: rework feature-probing APIstools/lib/bpf/libbpf.h tools/lib/bpf/libbpf.map tools/lib/bpf/libbpf_probes.c+236 -540 repliesApplied
2/3selftests/bpf: add libbpf feature-probing API selfteststools/testing/selftests/bpf/config tools/testing/selftests/bpf/prog_tests/libbpf_probes.c+126 -00 repliesApplied
3/3bpftool: reimplement large insn size limit feature probingtools/bpf/bpftool/feature.c+23 -30 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDave Marchevsky
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/3] Revamp and fix libbpf's feature-probing APIs

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 <[email protected]>

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
Signature · 1 line
2.30.2