public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 bpf-next 0/2] Multi-split BTF fixes and test
@ 2025-11-04 20:33 Alan Maguire
  2025-11-04 20:33 ` [PATCH v4 bpf-next 1/2] libbpf: Fix parsing of multi-split BTF Alan Maguire
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alan Maguire @ 2025-11-04 20:33 UTC (permalink / raw)
  To: andrii
  Cc: eddyz87, ast, daniel, martin.lau, yonghong.song, song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, ihor.solodrai, bpf,
	Alan Maguire

This small series consists of a fix to multi-split BTF parsing
(patch 1) and a test which exercises (multi-)split BTF parsing
(patch 2).

Changes since v3 [1]
- add asserts to ensure number of types in original and parsed
  BTF are identical, and the calls to btf__type_by_id() return
  valid pointers (code review bot, patch 2)

Changes since v2 [2]

- fix Fixes: tag formatting (Andrii, patch 1)
- BPF code-review bot saw we were doing ASSERT_OK_PTR() on wrong
  BTF (not multisplit) in patch 2
- ensure cleanup is correctly handled for BTF, unlink in split
  tests (Andrii, patch 2)

Changes since v1 [3]

- BPF code-review bot spotted another place that the string offset
needed to be adjusted based upon base start string offset + header
string offset.
- added selftests to extend split BTF testing to parsing

[1] https://lore.kernel.org/bpf/20251028225544.1312356-1-alan.maguire@oracle.com/
[2] https://lore.kernel.org/bpf/20251028155709.1265445-1-alan.maguire@oracle.com/
[3] https://lore.kernel.org/bpf/20251023142812.258870-1-alan.maguire@oracle.com/

Alan Maguire (2):
  libbpf: Fix parsing of multi-split BTF
  selftests/bpf: Test parsing of (multi-)split BTF

 tools/lib/bpf/btf.c                           |  4 +-
 .../selftests/bpf/prog_tests/btf_split.c      | 87 ++++++++++++++++++-
 2 files changed, 87 insertions(+), 4 deletions(-)

-- 
2.39.3


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

end of thread, other threads:[~2025-11-04 22:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 20:33 [PATCH v4 bpf-next 0/2] Multi-split BTF fixes and test Alan Maguire
2025-11-04 20:33 ` [PATCH v4 bpf-next 1/2] libbpf: Fix parsing of multi-split BTF Alan Maguire
2025-11-04 20:33 ` [PATCH v4 bpf-next 2/2] selftests/bpf: Test parsing of (multi-)split BTF Alan Maguire
2025-11-04 22:30 ` [PATCH v4 bpf-next 0/2] Multi-split BTF fixes and test patchwork-bot+netdevbpf

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