Skip to content

Libbpf API and memfd_create() fixes

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 Latest5 patches 1 replyApplied 5/5
  2. v15 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- added extra Fixes tag in patch #2 (Yonghong);
- improved commit message in patch #5 (Yonghong).

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5libbpf: call memfd_create() syscall directlytools/lib/bpf/libbpf.c+10 -10 repliesApplied
2/5libbpf: add missing LIBBPF_API annotation to libbpf_set_memlock_rlim APItools/lib/bpf/bpf.h+1 -10 repliesApplied
3/5libbpf: add btf__new_split() API that was declared but not implementedtools/lib/bpf/btf.c tools/lib/bpf/libbpf.map+7 -10 repliesApplied
4/5libbpf: add missed btf_ext__raw_data() APItools/lib/bpf/btf.c tools/lib/bpf/libbpf.map tools/lib/bpf/linker.c+7 -30 repliesApplied
5/5selftests/bpf: fix bench runner SIGSEGVtools/testing/selftests/bpf/bench.c+10 -20 repliesApplied

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEduard Zingerman
SeriesA-b
1/5
2/5
3/5
4/5
5/5

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/5] Libbpf API and memfd_create() fixes

Few small fixes identified over last few days. Main fix is for memfd_create() which causes problems on Android platforms. See individual patches for details.

v1->v2:
- added extra Fixes tag in patch #2 (Yonghong);
- improved commit message in patch #5 (Yonghong).

Andrii Nakryiko (5):
libbpf: call memfd_create() syscall directly
libbpf: add missing LIBBPF_API annotation to libbpf_set_memlock_rlim
API
libbpf: add btf__new_split() API that was declared but not implemented
libbpf: add missed btf_ext__raw_data() API
selftests/bpf: fix bench runner SIGSEGV

 tools/lib/bpf/bpf.h                 |  2 +-
 tools/lib/bpf/btf.c                 | 11 ++++++++++-
 tools/lib/bpf/libbpf.c              | 11 ++++++++++-
 tools/lib/bpf/libbpf.map            |  5 +++--
 tools/lib/bpf/linker.c              |  2 +-
 tools/testing/selftests/bpf/bench.c | 12 ++++++++++--
 6 files changed, 35 insertions(+), 8 deletions(-)
Signature · 1 line
2.34.1