/
View dependency graph
Depends on
- dh-golang (dh-sequence-golang)
- golang-defaults (golang-any)
- golang-github-cilium-ebpf (golang-github-cilium-ebpf-dev)
- golang-github-pkg-errors (golang-github-pkg-errors-dev)
- golang-golang-x-net (golang-golang-x-net-dev)
- golang-golang-x-sys (golang-golang-x-sys-dev)
- llvm-defaults (clang)
- debhelper-compat
README (full)
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:
rootorCAP_SYS_ADMINto load XDP programs- Recent (4.14+) Linux kernel
-
sudo go test
| dir | .github/ |
| dir | clang/ |
| dir | debian/ |
| file | LICENSE |
| file | README.md |
| file | c.go |
| file | c_example_test.go |
| file | c_test.go |
| file | cbpfc.go |
| file | cbpfc_test.go |
| file | ebpf.go |
| file | ebpf_example_test.go |
| file | ebpf_test.go |
| file | go.mod |
| file | go.sum |
| file | insn_test.go |
| file | kernel_test.go |