Extended Berkeley Packet Filter (eBPF) assembler and virtual machine
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package ebpf
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestLoadELF(t *testing.T) {
|
|
f, err := os.Open(filepath.Join("testdata", "vfs-4.19.o"))
|
|
if err != nil {
|
|
if os.IsNotExist(err) {
|
|
t.Skip(err)
|
|
} else {
|
|
t.Fatal(err)
|
|
}
|
|
return
|
|
}
|
|
defer f.Close()
|
|
if _, err := LoadELF(f); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|