Registry / networking / cilium-ebpf

cilium-ebpf

JSON →
library0.21.0gogounverified

Package ebpf is a toolkit for working with eBPF programs.

go get github.com/cilium/ebpf
INSTALL
IMPORT
SIG · CILIUM-EBPF
C
cilium-ebpf
networkinggov0.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ebpf
github.com/cilium/ebpf

Load an eBPF collection from an ELF file.

package main import ( "github.com/cilium/ebpf" "github.com/cilium/ebpf/link" ) func main() { spec, _ := ebpf.LoadCollectionSpec("program.o") coll, _ := ebpf.NewCollection(spec) defer coll.Close() }
Debug
Known issues
gotchaRequires Linux kernel with eBPF support and appropriate permissions.
fix
Run as root or with CAP_BPF capability on a supported kernel.
affects: all
Upgrade
Version history
0.21.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Meta
1
Amazon
1
OpenAI (training)
1
Resources
cilium-ebpf — go get cilium-ebpf · libregistry