repositorypackage
0.0.0-20250612131231-1b95965eadb6
Repository: https://github.com/cloudflare/cbpfc.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
cbpfc
cbpfc is a classic BPF (cBPF) to extended BPF (eBPF) compiler. It can compile cBPF to eBPF, or to C, and the generated code should be accepted by the kernel verifier.
cbpfc/clang is a simple clang wrapper for compiling C to eBPF.
Tests
Dependencies
clang
- Path can be set via environment variable
$CLANG
- Path can be set via environment variable
Unprivileged
go test -short
Full
-
Requires:
root
orCAP_SYS_ADMIN
to load XDP programs- Recent (4.14+) Linux kernel
-
sudo go test