Crates.io | bpf-api |
lib.rs | bpf-api |
version | 0.3.1 |
source | src |
created_at | 2022-10-25 00:56:31.707126 |
updated_at | 2024-01-23 11:35:15.518312 |
description | Idomatic Rust bindings for eBPF programs, probes, and maps. |
homepage | https://github.com/arcjustin/bpf-api |
repository | https://github.com/arcjustin/bpf-api |
max_upload_size | |
id | 696386 |
size | 88,627 |
Idomatic Rust bindings for eBPF programs, probes, and maps.
The motive behind this crate and sister crates: btf
, btf-derive
, bpf-ins
, and bpf-script
, aside from learning more about eBPF, was to be able to have a fully Rust eBPF solution. That is, the ability to easily write, compile, and attach BPF programs and use maps without any dependencies on bcc, libbpf or any other non-Rust BPF dependencies.
For usage examples, see code located in examples/ :
Examples | Description |
---|---|
array | A short example using a BPF array |
print-programs | A short example that attachs a probe to sched_process_exec and prints program executions |
user-tracer | Probes a given image path and symbol name using uprobes |