]> git.feebdaed.xyz Git - 0xmirror/ebpf.git/commit
bpf2go: import package structs when all structs are typedefs
authorRon Federman <ron@odigos.io>
Sat, 7 Jun 2025 15:28:14 +0000 (18:28 +0300)
committerTimo Beckers <ti-mo@users.noreply.github.com>
Tue, 10 Jun 2025 08:34:23 +0000 (10:34 +0200)
commit5bfac49d5307d457c7bac46d36f722ec60811767
tree917837ea707b19e307d77aaa1cd632f3ac214f03
parent5e8603342759b475537ab6c12e0877d2b030099a
bpf2go: import package structs when all structs are typedefs

When deciding whether to import package structs, the logic only considered
typical struct declarations. Typedefs also need to be taken into account.

Signed-off-by: Ron Federman <ron@odigos.io>
Co-authored-by: Timo Beckers <timo@isovalent.com>
cmd/bpf2go/gen/output.go
cmd/bpf2go/gen/output_test.go