eunomia-rs

Crates.ioeunomia-rs
lib.rseunomia-rs
version0.1.1
sourcesrc
created_at2022-08-31 12:53:36.922771
updated_at2023-03-23 15:56:20.373986
descriptionA rust binding for eunomia-bpf.
homepage
repository
max_upload_size
id655689
size6,296
Officeyutong (Officeyutong)

documentation

README

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-RE eBPF code without provisioning or managing infrastructure
  • simply requests with a json and run any pre-compiled ebpf code on any kernel version
  • very small and simple! Only a binary about 3MB
  • as fast as 100ms to load and run a ebpf program
  • Distributed and decentralized, 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
Commit count: 0

cargo fmt