drewkett / bpf-ins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bpf-ins

Build Status crates.io mio Lines of Code

Description

Library for encoding and decoding eBPF instructions.

Usage

/*
 * return 0
 */
let instructions = [ 
    Instruction::mov32(Register::R0, 0), // mov r0, 0
    Instruction::exit(),                 // exit
];

TODO

  • Replace anyhow with own Result/Error definitions.

About


Languages

Language:Rust 100.0%