#ebpf #script #linux #parser

macro bpf-script-derive

Macros for the bpf-script crate

6 releases

0.5.4 Nov 5, 2022
0.5.3 Nov 3, 2022
0.4.0 Nov 2, 2022

#79 in #bpf


Used in bpf-api

MIT license

9KB
55 lines

bpf-script-derive

Build Status crates.io mio Lines of Code

Provides a derive macro for AddToDatabase to make adding Rust types to a bpf_script::types::TypeDatabase easier.

Usage

For usage examples, see code located in examples/ :

Examples Description
custom-type Creates and inserts a custom type into an empty BTF database

lib.rs:

Build Status crates.io mio Lines of Code

Provides a derive macro for AddToDatabase to make adding Rust types to a bpf_script::types::TypeDatabase easier.

License

Dependencies

~7–16MB
~207K SLoC