Skip to content

Support global variables

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 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4selftests/bpf: ensure no DWARF relocations for BPF object filestools/testing/selftests/bpf/Makefile+1 -10 replies
2/4libbpf: refactor relocation handlingtools/lib/bpf/libbpf.c+143 -1180 replies
3/4libbpf: fix various errors and warning reported by checkpatch.pltools/lib/bpf/libbpf.c+21 -170 replies
4/4libbpf: support initialized global variablestools/lib/bpf/libbpf.c tools/testing/selftests/bpf/progs/test_core_reloc_arrays.c tools/testing/selftests/bpf/progs/test_core_reloc_bitfields_direct.c +11 more+28 -330 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/4] Support global variables

This patch set salvages all the non-extern-specific changes out of blocked externs patch set ([0]). In addition to small clean ups, it also refactors libbpf's handling of relocations and allows support for global (non-static) variables.

[0] https://patchwork.ozlabs.org/project/netdev/list/?series=143358&state=*

Andrii Nakryiko (4):
selftests/bpf: ensure no DWARF relocations for BPF object files
libbpf: refactor relocation handling
libbpf: fix various errors and warning reported by checkpatch.pl
libbpf: support initialized global variables

 tools/lib/bpf/libbpf.c                        | 292 ++++++++++--------
 tools/testing/selftests/bpf/Makefile          |   2 +-
 .../bpf/progs/test_core_reloc_arrays.c        |   4 +-
 .../progs/test_core_reloc_bitfields_direct.c  |   4 +-
 .../progs/test_core_reloc_bitfields_probed.c  |   4 +-
 .../bpf/progs/test_core_reloc_existence.c     |   4 +-
 .../bpf/progs/test_core_reloc_flavors.c       |   4 +-
 .../bpf/progs/test_core_reloc_ints.c          |   4 +-
 .../bpf/progs/test_core_reloc_kernel.c        |   4 +-
 .../bpf/progs/test_core_reloc_misc.c          |   4 +-
 .../bpf/progs/test_core_reloc_mods.c          |   4 +-
 .../bpf/progs/test_core_reloc_nesting.c       |   4 +-
 .../bpf/progs/test_core_reloc_primitives.c    |   4 +-
 .../bpf/progs/test_core_reloc_ptr_as_arr.c    |   4 +-
 .../bpf/progs/test_core_reloc_size.c          |   4 +-
 15 files changed, 185 insertions(+), 161 deletions(-)
Signature · 1 line
2.17.1