uBPF
uBPF Documentation

Introduction

This project aims to create an Apache-licensed library for executing eBPF programs. The primary implementation of eBPF lives in the Linux kernel, but due to its GPL license it can't be used in many projects.

For more info see:

This project includes an eBPF assembler, disassembler, interpreter (for all platforms), and JIT compiler (for x86-64 and Arm64 targets).

Building

Note: This works on Windows, Linux, and MacOS, provided the prerequisites are installed.

  • cmake -S . -B build -DUBPF_ENABLE_TESTS=true
  • cmake –build build –config Debug

uBPF API Reference

API docs: ubpf.h.