[llvm] [BPF] Handle nested wrapper structs in BPF map definition traversal (PR #144097)
Michal Rostecki via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 04:56:23 PDT 2025
vadorovsky wrote:
@eddyz87
> As I said, there is no functional reason for pointer types to have names in BTF, any strings encoding such names would unnecessarily use space in the .BTF strings section. Hence, I think upstream kernel might object, but who knows.
OK, the point about no functional reason for named pointers sounds reasonable. Named pointer types in Rust are convenient for debuggers, but are indeed of no use in the kernel/BPF world. And the goal of BTF is to be small.
That makes me think of a completely opposite idea - what if we remove pointer names here, in the BPF backend in LLVM? Since named pointers are correct from the point of view of LLVM debug info, but we don't want them to bloat BTF, then the LLVM backend seems like a correct place for stripping unnecessary information.
https://github.com/llvm/llvm-project/pull/144097
More information about the llvm-commits
mailing list