Need help with ebpf?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

cilium
902 Stars 67 Forks MIT License 444 Commits 12 Opened issues

Description

eBPF Library for Go

Services available

!
?

Need anything else?

Contributors list

No Data

eBPF

PkgGoDev

eBPF is a pure Go library that provides utilities for loading, compiling, and debugging eBPF programs. It has minimal external dependencies and is intended to be used in long running processes.

  • asm contains a basic assembler.
  • link allows attaching eBPF to various hooks.
  • perf allows reading from a PERFEVENTARRAY.
  • cmd/bpf2go allows embedding eBPF in Go.

The library is maintained by Cloudflare and Cilium. Feel free to join the libbpf-go channel on Slack.

Current status

The package is production ready, but the API is explicitly unstable right now. Expect to update your code if you want to follow along.

Requirements

  • A version of Go that is supported by upstream
  • Linux 4.9, 4.19 or 5.4 (versions in-between should work, but are not tested)

Useful resources

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.