Crate btf

Source
Expand description

Build Status crates.io mio Lines of Code

Parsing library for the eBPF type format.

§Usage

use btf::Btf;

let btf = Btf::from_file("/sys/kernel/btf/vmlinux").expect("Failed to parse vmlinux");
let pt_regs = btf.get_type_by_name("pt_regs").expect("Can't find type.");
println!("{:?}", pt_regs);

§License

Re-exports§

pub use crate::btf::*;
pub use crate::error::*;

Modules§

btf
error