You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
btf_types.go contains a bunch of hand written structs that map to types defined in the kernel's UAPI. We should replace these with auto generated types in sys package and use those from btf. This guarantees that we match the kernel 1:1 and also ensures that there is no implicit padding present.
I see bunch of helper functions and methods in btf_types.go . are we gonna keep them inside that file and just auto generate the structs inside sys package?
btf_types.go contains a bunch of hand written structs that map to types defined in the kernel's UAPI. We should replace these with auto generated types in sys package and use those from btf. This guarantees that we match the kernel 1:1 and also ensures that there is no implicit padding present.
The changes need to be made here:
ebpf/internal/cmd/gentypes/main.go
Lines 157 to 208 in 0acd95c
The text was updated successfully, but these errors were encountered: