返回排行榜

cilium/ebpf

Goebpf-go.dev

ebpf-go is a pure-Go library to read, modify and load eBPF programs and attach them to various hooks in the Linux kernel.

ebpflinuxgogolangbtf
Star 增长趋势
Star
7.9k
Forks
879
周增长
Issues
13
2k4k6k
2019年9月2021年12月2024年4月2026年7月
制品库Go Modulesgo get github.com/cilium/ebpf
README

eBPF

PkgGoDev

HoneyGopher

ebpf-go 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.

See ebpf.io for complementary projects from the wider eBPF ecosystem.

Getting Started

Please take a look at our Getting Started guide.

Contributions are highly encouraged, as they highlight certain use cases of eBPF and the library, and help shape the future of the project.

Getting Help

The community actively monitors our GitHub Discussions page. Please search for existing threads before starting a new one. Refrain from opening issues on the bug tracker if you're just starting out or if you're not sure if something is a bug in the library code.

Alternatively, join the #ebpf-go channel on Slack if you have other questions regarding the project. Note that this channel is ephemeral and has its history erased past a certain point, which is less helpful for others running into the same problem later.

Packages

This library includes the following packages:

  • asm contains a basic assembler, allowing you to write eBPF assembly instructions directly within your Go code. (You don't need to use this if you prefer to write your eBPF program in C.)
  • cmd/bpf2go allows compiling and embedding eBPF programs written in C within Go code. As well as compiling the C code, it auto-generates Go code for loading and manipulating the eBPF program and map objects.
  • link allows attaching eBPF to various hooks
  • perf allows reading from a PERF_EVENT_ARRAY
  • ringbuf allows reading from a BPF_MAP_TYPE_RINGBUF map
  • features implements the equivalent of bpftool feature probe for discovering BPF-related kernel features using native Go.
  • rlimit provides a convenient API to lift the RLIMIT_MEMLOCK constraint on kernels before 5.11.
  • btf allows reading the BPF Type Format.
  • pin provides APIs for working with pinned objects on bpffs.

Requirements

  • A version of Go that is supported by upstream
  • Linux (amd64, arm64): CI is run against kernel.org LTS releases. >= 4.4 should work but EOL'ed versions are not supported.
  • Windows (amd64): CI is run against Windows Server 2022. Only the latest eBPF for Windows release is supported.
  • Other architectures are best effort. 32bit arches are not supported.

License

MIT

eBPF Gopher

The eBPF honeygopher is based on the Go gopher designed by Renee French.

相关仓库
apache/skywalking

APM, Application Performance Monitoring System

JavaMavenApache License 2.0skywalkingobservability
skywalking.apache.org
24.9k6.6k
cilium/cilium

eBPF-based Networking, Security, and Observability

GoGo ModulesApache License 2.0containersbpf
cilium.io
24.8k3.9k
kubesphere/kubesphere

The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management ⎈ 🖥 ☁️

GoGo ModulesOtherdevopscncf
kubesphere.io
17k2.7k
gojue/ecapture

Capturing SSL/TLS plaintext without a CA certificate using eBPF. Supported on Linux/Android kernels for amd64/arm64.

CApache License 2.0golangebpf
ecapture.cc
15.4k1.6k
kubeshark/kubeshark

eBPF-powered network observability for Kubernetes. Indexes L4/L7 traffic with full K8s context, decrypts TLS without keys. Queryable by AI agents via MCP and humans via dashboard.

GoGo ModulesApache License 2.0kubernetesgolang
kubeshark.com
12k542
bpftrace/bpftrace

High-level tracing language for Linux

C++Apache License 2.0bpfebpf
bpftrace.org
10.2k1.5k
falcosecurity/falco

Cloud Native Runtime Security

C++Apache License 2.0cncfcontainers
falco.org
9.2k1.1k
ntop/ntopng

Web-based Traffic and Cybersecurity Network Traffic Monitoring

LuaGNU General Public License v3.0ntopngrealtime
ntop.org
8k751
coroot/coroot

Coroot is an open-source observability and APM tool with AI-powered Root Cause Analysis. It combines metrics, logs, traces, continuous profiling, and SLO-based alerting with predefined dashboards and inspections.

GoGo ModulesApache License 2.0dashboarddatabase-monitoring
coroot.com
7.8k385
projectcalico/calico

Cloud native networking and network security

GoGo ModulesApache License 2.0cnicni-plugin
docs.tigera.io/calico/latest/about/
7.3k1.6k
pixie-io/pixie

Instant Kubernetes-Native Application Observability

C++Apache License 2.0golangkubernetes
px.dev
6.5k499
daeuniverse/dae

eBPF-based Linux high-performance transparent proxy solution.

GoGo ModulesGNU Affero General Public License v3.0ebpftransparent-proxy
6k384