[PATCH bpf-next 0/2] Add fwd enum resolution for btf_dedup()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux