aya icon indicating copy to clipboard operation
aya copied to clipboard

[Proposal] Add --prune-unused option to aya-gen

Open willfindlay opened this issue 4 years ago • 1 comments

I don't know how easy/hard this would be, but it would be cool if aya-gen had a --prune-unused flag that would remove unused struct fields and any types they depend on from the generated bindings. The use case for this would be generating an extremely minified vmlinux.rs file for use with BTF programs.

willfindlay avatar Oct 31 '21 15:10 willfindlay

This would probably need to hold off until we add BTF support to aya-bpf.

willfindlay avatar Nov 04 '21 13:11 willfindlay