Skip to content

BTF inline functionality followups

Alan Maguire bpf 3 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. v3 Latest3 patches 7 repliesApplied 3/3
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf: Verify BTF_KIND_LOC_PARAM vlen, flagskernel/bpf/btf.c+43 -02 repliesApplied
2/3bpftool: Update func representation to include function signaturetools/bpf/bpftool/btf.c+114 -93 repliesApplied
3/3selftests/bpf: Fix up bpftool btf dump test for signaturestools/testing/selftests/bpf/prog_tests/bpftool_btf_dump.c+8 -60 repliesApplied

Reviews trailers per patch

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

PatchJiri OlsaQuentin Monnet
SeriesA-b A-b
1/3
2/3A-b
3/3

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

Read the v3 thread

Cover letter [PATCH v3 bpf-next 0/3] BTF inline functionality followups

Include additional vlen/flags verification for BTF_KIND_LOC_PARAM (patch 1), and add function signatures to LOCSEC entries (patch 2), adjusting test to cover these (patch 3).

Changes since v2 [1]

- Improved flag/vlen verification to check combinations (Alexei, patch 1)
- Simplified overrun ellipsis printing (Quentin, patch 2)

Changes since v1 [2]

- Fixed sign to appear after const (bots, patch 2)
- Simplified loc printing to remove vsnprintf() logic, updated to retain name in json (Quentin, patch 2)
- For oversized signature strings, append "..." (Quentin, patch 2)

[1] https://lore.kernel.org/bpf/[email protected]/
[2] https://lore.kernel.org/bpf/[email protected]/

Alan Maguire (3):
bpf: Verify BTF_KIND_LOC_PARAM vlen, flags
bpftool: Update func representation to include function signature selftests/bpf: Fix up bpftool btf dump test for signatures

 kernel/bpf/btf.c                              |  43 ++++++
 tools/bpf/bpftool/btf.c                       | 123 ++++++++++++++++--
 .../bpf/prog_tests/bpftool_btf_dump.c         |  14 +-
 3 files changed, 165 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.5