Skip to content

Libbpf extern support improvements

Andrii Nakryiko bpf netdev 1 version Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3libbpf: put Kconfig externs into .kconfig sectiontools/bpf/bpftool/gen.c tools/lib/bpf/bpf_helpers.h tools/lib/bpf/libbpf.c +3 more+60 -480 replies
2/3libbpf: allow to augment system Kconfig through extra optional configtools/lib/bpf/libbpf.c tools/lib/bpf/libbpf.h tools/testing/selftests/bpf/prog_tests/core_extern.c+132 -1120 replies
3/3libbpf: BTF is required when externs are presenttools/lib/bpf/libbpf.c+2 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] Libbpf extern support improvements

Based on latest feedback and discussions, this patch set implements the following changes:

- Kconfig-provided externs have to be in .kconfig section, for which bpf_helpers.h provides convenient __kconfig macro (Daniel);
- instead of allowing to override Kconfig file path, switch this to ability to extend and override system Kconfig with user-provided custom values (Alexei);
- BTF is required when externs are used.

Andrii Nakryiko (3):
libbpf: put Kconfig externs into .kconfig section
libbpf: allow to augment system Kconfig through extra optional config
libbpf: BTF is required when externs are present

 tools/bpf/bpftool/gen.c                       |   8 +-
 tools/lib/bpf/bpf_helpers.h                   |   2 +
 tools/lib/bpf/libbpf.c                        | 265 +++++++++++-------
 tools/lib/bpf/libbpf.h                        |   8 +-
 .../selftests/bpf/prog_tests/core_extern.c    |  32 +--
 .../selftests/bpf/prog_tests/skeleton.c       |  16 +-
 .../selftests/bpf/progs/test_core_extern.c    |  20 +-
 .../selftests/bpf/progs/test_skeleton.c       |   4 +-
 8 files changed, 194 insertions(+), 161 deletions(-)
Signature · 1 line
2.17.1