BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/3] Libbpf extern support improvements
@ 2019-12-19  0:28 Andrii Nakryiko
  2019-12-19  0:28 ` [PATCH bpf-next 1/3] libbpf: put Kconfig externs into .kconfig section Andrii Nakryiko
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andrii Nakryiko @ 2019-12-19  0:28 UTC (permalink / raw)
  To: bpf, netdev, ast, daniel; +Cc: andrii.nakryiko, kernel-team, Andrii Nakryiko

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(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-19  1:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19  0:28 [PATCH bpf-next 0/3] Libbpf extern support improvements Andrii Nakryiko
2019-12-19  0:28 ` [PATCH bpf-next 1/3] libbpf: put Kconfig externs into .kconfig section Andrii Nakryiko
2019-12-19  0:28 ` [PATCH bpf-next 2/3] libbpf: allow to augment system Kconfig through extra optional config Andrii Nakryiko
2019-12-19  0:28 ` [PATCH bpf-next 3/3] libbpf: BTF is required when externs are present Andrii Nakryiko
2019-12-19  1:35 ` [PATCH bpf-next 0/3] Libbpf extern support improvements Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox