Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

eunomia-bpf

> DevOps
Open source

A Tool to make Build and Run eBPF programs easier

888 stars0 likes3 views
WebsiteGitHub

About

A Tool to make Build and Run eBPF programs easier

eunomia-bpf: simplify and enhance eBPF with CO-RE[^1] and WebAssembly[^2]

A compiler and runtime framework to help you build and distribute eBPF program easier.

Introduction

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:

  • A library to simplify writing eBPF programs:
    • simplify building CO-RE[^1] libbpf eBPF applications: write eBPF kernel code only and automatically exposing your data with perf event or ring buffer from kernel.
    • Automatically sample the data from hash maps and print hists in userspace.
    • Automatically generate and config command line arguments for eBPF programs.
    • You can writing the kernel part in both BCC and libbpf styles.
  • Build eBPF programs with Wasm[^2]: see Wasm-bpf project
    • Runtime, libraries and toolchains to write eBPF with Wasm in C/C++, Rust, Go...covering the use cases from tracing, networking, security.
  • simplify distributing eBPF programs:
    • A tool for push, pull and run pre-compiled eBPF programs as OCI images in Wasm module
    • Run eBPF programs from cloud or URL within 1 line of bash without recompiling, kernel version and architecture independent.
    • Dynamically load eBPF programs with 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:

Getting Started

  • Github Template:eunomia-bpf/ebpm-template
  • example bpf programs: examples/bpftools
  • tutorial: eunomia-bpf/bpf-developer-tutorial

run as a CLI tool

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.

Install the project

  • Install the 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):

    bash
    $ 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:

    bash
    # 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.

Examples

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.

License

MIT LICENSE

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustbccebpfebpf-co-refunction-as-a-service

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理