forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change bpf_alignchecker structs to global variables
This is preparation work to convert alignchecker from DWARF to BTF so alignchecker could check C and Go structs alignment based on BTF info. BTF generated by the llvm compiler with -target bpf may contain less types than pahole -JV types. The reason is -target bpf only generates BTF with global variables, functions definitions and CO-RE related types, some types inside the program will not be generated for BTF. This is to only have needed types for bpf programs so far. For detailed discussion, see cilium#20692 Suggested-by: Yonghong Song <yhs@fb.com> Signed-off-by: Vincent Li <v.li@f5.com> Co-authored-by: Timo Beckers <timo@isovalent.com>
- Loading branch information
Showing
1 changed file
with
51 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters