Skip to content

tools/bpf: expose several libbpf API functions

Yonghong Song netdev 1 version Applied

Status from this message: Applied to bpf-next. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2tools/bpf: expose functions btf_ext__* as API functionstools/lib/bpf/btf.h tools/lib/bpf/libbpf.map+18 -120 replies
2/2tools/bpf: implement libbpf btf__get_map_kv_tids() API functiontools/lib/bpf/btf.c tools/lib/bpf/btf.h tools/lib/bpf/libbpf.c +1 more+87 -630 replies

Reviews trailers per patch

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

PatchMartin KaFai Lau
1/2A-b
2/2A-b

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] tools/bpf: expose several libbpf API functions

This patch set exposed a few functions in libbpf. All these newly added API functions are helpful for JIT based bpf compilation where .BTF and .BTF.ext are available as in-memory data blobs.

Patch #1 exposed several btf_ext__* API functions which are used to handle .BTF.ext ELF sections.
Patch #2 refactored the function bpf_map_find_btf_info() and exposed API function btf__get_map_kv_tids() to retrieve the map key/value type id's generated by bpf program through BPF_ANNOTATE_KV_PAIR macro.

Yonghong Song (2):
tools/bpf: expose functions btf_ext__* as API functions tools/bpf: implement libbpf btf__get_map_kv_tids() API function

 tools/lib/bpf/btf.c      | 73 ++++++++++++++++++++++++++++++++++++++++
 tools/lib/bpf/btf.h      | 28 ++++++++-------
 tools/lib/bpf/libbpf.c   | 72 +++++----------------------------------
 tools/lib/bpf/libbpf.map |  7 ++++
 4 files changed, 105 insertions(+), 75 deletions(-)
Signature · 1 line
2.17.1