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.
 
 

24 lines
428 B

package ebpf
import "testing"
func TestBuiltin(t *testing.T) {
tests := testInstructionSuite{
{
Test: ProbeRead,
WantRaw: RawInstruction{
Op: opClassJump | jumpOpCall,
Immediate: 0x00000004,
},
WantString: "call 4",
}, {
Test: Jiffies64,
WantRaw: RawInstruction{
Op: opClassJump | jumpOpCall,
Immediate: 0x00000076,
},
WantString: "call 118",
},
}
tests.Run(t)
}