Skip to content

Add fwd enum resolution for btf_dedup()

Andrii Nakryiko bpf netdev 1 version Applied

Status from this message: I've applied this set to bpf tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2btf: resolve enum fwds in btf_deduptools/lib/bpf/btf.c+38 -135 replies
2/2selftests/bpf: add fwd enum resolution test for btf_deduptools/testing/selftests/bpf/test_btf.c+44 -00 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/2] Add fwd enum resolution for btf_dedup()

This patchset adds ability to resolve forward-declared enums into their corresponding full enum definition types during type deduplication, eliminating one of the reasons for having duplicated graphs of types.

Andrii Nakryiko (2):
btf: resolve enum fwds in btf_dedup selftests/bpf: add fwd enum resolution test for btf_dedup

 tools/lib/bpf/btf.c                    | 51 +++++++++++++++++++-------
 tools/testing/selftests/bpf/test_btf.c | 44 ++++++++++++++++++++++
 2 files changed, 82 insertions(+), 13 deletions(-)
Signature · 1 line
2.17.1