Library for encoding and decoding eBPF instructions.
/*
* return 0
*/
let instructions = [
Instruction::mov32(Register::R0, 0), // mov r0, 0
Instruction::exit(), // exit
];
- Replace
anyhow
with own Result/Error definitions.