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

-- 
2.17.1

Reply via email to