iovisor / gobpf

Go bindings for creating BPF programs.
Apache License 2.0
2.14k stars 314 forks source link

gobpf test script: error while loading probe #289

Closed JonBruchim closed 3 years ago

JonBruchim commented 3 years ago

Im using Debian 9 vm with kernel 4.9.0.15 and while trying the gobpf tests I receive the following error. Loading kprobe fails.

sudo go test -tags integration -v ./... === RUN TestModuleLoadBCC --- PASS: TestModuleLoadBCC (0.34s) === RUN TestBCCIterTable --- PASS: TestBCCIterTable (0.33s) === RUN TestBCCTableSetPGetPDeleteP --- PASS: TestBCCTableSetPGetPDeleteP (0.32s) === RUN TestBCCTableDeleteAll --- PASS: TestBCCTableDeleteAll (0.32s) === RUN TestModuleLoadELF --- FAIL: TestModuleLoadELF (0.01s) bpf_test.go:668: error while loading "kprobe/dummy" (invalid argument):

What could be the reason for this? in my own code I also can't use kprobes and receive the same error

Thanks