Closed thatjiaozi closed 3 months ago
Currently, this pattern gets repeated often to write an ebpf program:
var root, ptr, next ebpf.EBPFOperation root := ALUIMMOperation(...) ptr = root next := ... ptr.SetNextInstruction(next) ptr = next ...
Ideally, programs should be built in a more readable and easier to write way, for example:
newEBPFSequence( MOV64(R0, 0), MOV64(R1, R0), MUL64(R1, 10), ... )
This has been implemented
Currently, this pattern gets repeated often to write an ebpf program:
Ideally, programs should be built in a more readable and easier to write way, for example: