Skip to content

libbpf: ABI versioning and documentation

Andrey Ignatov netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* add patch from Martin KaFai Lau <[email protected]> to rename btf_get_from_id;
* add documentation for libbpf API and ABI.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libbpf: Name changing for btf_get_from_idtools/bpf/bpftool/map.c tools/bpf/bpftool/prog.c tools/lib/bpf/btf.c +2 more+6 -60 replies
2/4libbpf: Add version script for DSOtools/lib/bpf/Makefile tools/lib/bpf/libbpf.map+124 -10 replies
3/4libbpf: Verify versioned symbolstools/lib/bpf/Makefile+18 -10 replies
4/4libbpf: Document API and ABI conventionstools/lib/bpf/README.rst+139 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/4] libbpf: ABI versioning and documentation

This patch set adds ABI versioning and documentation to libbpf.

Patch 1 renames btf_get_from_id to btf__get_from_id to follow naming convention.
Patch 2 adds version script and has more details on ABI versioning. Patch 3 adds simple check that all global symbols are versioned. Patch 4 documents a few aspects of libbpf API and ABI in dev process.

v1->v2:
* add patch from Martin KaFai Lau <[email protected]> to rename btf_get_from_id;
* add documentation for libbpf API and ABI.

Andrey Ignatov (3):
libbpf: Add version script for DSO
libbpf: Verify versioned symbols
libbpf: Document API and ABI conventions

Martin KaFai Lau (1):
libbpf: Name changing for btf_get_from_id

 tools/bpf/bpftool/map.c                |   4 +-
 tools/bpf/bpftool/prog.c               |   2 +-
 tools/lib/bpf/Makefile                 |  23 +++-
 tools/lib/bpf/README.rst               | 139 +++++++++++++++++++++++++
 tools/lib/bpf/btf.c                    |   2 +-
 tools/lib/bpf/btf.h                    |   2 +-
 tools/lib/bpf/libbpf.map               | 121 +++++++++++++++++++++
 tools/testing/selftests/bpf/test_btf.c |   2 +-
 8 files changed, 287 insertions(+), 8 deletions(-)
 create mode 100644 tools/lib/bpf/README.rst
 create mode 100644 tools/lib/bpf/libbpf.map
Signature · 1 line
2.17.1