cilium / pwru

Packet, where are you? -- eBPF-based Linux kernel networking debugger
Apache License 2.0
2.85k stars 175 forks source link

Use github.com/cilium/cilium/pkg/alignchecker to check C and Go structs offsets and sizes #28

Open brb opened 3 years ago

brb commented 3 years ago

The Cilium's alignchecker should be extended to support BTF instead of DWARF. AFAIK, @ti-mo is planning to do so.

Asphaltt commented 1 month ago

Golang supports struct's host layout since go1.23 by structs.HostLayout.

Would it be better to mark bpf2go-generated structs as host layout?

ti-mo commented 1 month ago

It will when ebpf-go targets 1.23, we always target the second-newest version.