Re: [PATCH bpf] libbpf: Fix BTF dump of pointer-to-array-of-struct

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

 



On Thu, Mar 18, 2021 at 10:08:36AM -0700, Andrii Nakryiko wrote:
> Yeah, makes total sense. I missed that array forces a strong link
> between types. The fix looks good, but can you please add those two
> cases to selftests? There is progs/btf_dump_test_case_syntax.c that
> probably can be extended. Please think about a way to specify types
> such that the order of BTF types doesn't matter and the issue has to
> be handled always.

Sure, I'll add those selftests. I didn't figure out a way to trigger the
error unconditionally, but given that the selftest is always built with
clang it's still a good regression test.

Thanks,
Jean




[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