A Tool to make Build and Run eBPF programs easier
A Tool to make Build and Run eBPF programs easier
A compiler and runtime framework to help you build and distribute eBPF program easier.
eunomia-bpf is a dynamic loading library/runtime and a compile toolchain framework, aim at helping you build and distribute eBPF programs easier.
Project documentation is maintained in eunomia.dev and its source now lives in eunomia-bpf/eunomia.dev.
With eunnomia-bpf, you can:
writing eBPF programs:libbpf eBPF applications: write eBPF kernel code only and automatically exposing your data with perf event or ring buffer from kernel.hists in userspace.command line arguments for eBPF programs.BCC and libbpf styles.Wasm[^2]: see Wasm-bpf projecttracing, networking, security.distributing eBPF programs:OCI images in Wasm modulecloud or URL within 1 line of bash without recompiling, kernel version and architecture independent.JSON config file or Wasm module.For more information, see the eunomia-bpf documentation.
[^1]: CO-RE: Compile Once – Run Everywhere [^2]: WebAssembly or Wasm:
You can get pre-compiled eBPF programs running from an OCI registry to the kernel in 1 line of bash:
…The legacy remote HTTP mode (ecli client / ecli-server) has been removed from the main branch to reduce maintenance overhead. The last implementation is preserved on the archive/ecli-remote-http branch.
ecli tool for running eBPF program from the cloud:…Install the ecc compiler-toolchain for compiling eBPF kernel code to a config file or Wasm module(clang, llvm, and libclang should be installed for compiling):
$ wget https://github.com/eunomia-bpf/eunomia-bpf/releases/latest/download/ecc && chmod +x ./ecc
$ ./ecc -h
eunomia-bpf compiler
Usage: ecc [OPTIONS] [EXPORT_EVENT_HEADER]
....or use the docker image for compile:
# for x86_64 and aarch64
docker run -it -v `pwd`/:/src/ ghcr.io/eunomia-bpf/ecc-`uname -m`:latest # compile with docker. `pwd` should contains *.bpf.c files and *.h files.build the compiler, runtime library and tools:
see build for building details.
See examples for details about simple eBPF tools and eunomia-bpf library usage.
See github.com/eunomia-bpf/wasm-bpf/tree/main/examples for Wasm eBPF programs and examples.
We also have a prove of concept video: Writing eBPF programs in Wasm.
MIT LICENSE
No open issues yet, or sync has not completed.