proc/internal/ebpf: drop dependency on cgo (#3072)

The ebpf implementations uses cgo, but only to access some C struct
definitions. Instead of using cgo simply duplicate the defintion of
those two structs in Go and add a test to check that the duplicate
definitions remain synchronized.

Fixes #2827
This commit is contained in:
Alessandro Arzilli
2022-07-22 19:39:18 +02:00
committed by GitHub
parent 6ef5284505
commit 5452c30fac
7 changed files with 110 additions and 32 deletions

View File

@ -41,7 +41,7 @@ GOPATH=$(pwd)/go
export GOPATH
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
go version
go install honnef.co/go/tools/cmd/staticcheck@2021.1.1 || true
go install honnef.co/go/tools/cmd/staticcheck@2022.1.2 || true
uname -a
echo "$PATH"