2 releases
| 0.1.1 | Mar 23, 2023 |
|---|---|
| 0.1.0 | Aug 31, 2022 |
#971 in Unix APIs
7KB
118 lines
A rust binding for eunomia-bpf
eunomia-bpf: https://github.com/eunomia-bpf/eunomia-bpf
Our target: Run CO-RE eBPF function as a service!
- Run
CO-REeBPF code without provisioning or managing infrastructure - simply requests with a json and run
anypre-compiled ebpf code onanykernel version - very small and simple! Only a binary about
3MB - as fast as
100msto load and run a ebpf program Distributedanddecentralized, No compile helper server
In general, we develop an approach to compile, transmit, and run most libbpf CO-RE objects with some user space config meta data to help us load and operator the eBPF byte code.
So, the only thing you need to do is focus on writing a single eBPF program in the kernel. We have a compiler here: eunomia-cc
Build
You will nedd to build the eunomia-bpf as a library first, then you can use it in your program.
cd bpf-loader
make install
Dependencies
~0.1–1.8MB
~33K SLoC