7 releases
0.1.1 | Aug 28, 2022 |
---|---|
0.1.0 | Jul 15, 2022 |
0.0.5 | May 24, 2022 |
#60 in #ebpf
78KB
1.5K
SLoC
bpf-feature
A Rust library for BPF feature detection
Background
eBPF support is a moving target when it comes to Linux versions. Knowing what our kernels currently support is necessary to determine which BPF features we can enable in the programs we write.
The checks here are modeled after bpftool's feature probe functionality.
Install
To use in your project, add into your Cargo.toml
:
[dependencies]
bpf-feature = "0.0.5"
or using cargo-edit:
$ cargo add bpf-feature
Documentation
License
BSD 2-Clause - Maintained by bpfdeploy.io
Dependencies
~12MB
~282K SLoC