MCPcopy Index your code
hub / github.com/DataDog/ebpf-manager

github.com/DataDog/ebpf-manager @v0.7.18

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.7.18 ↗ · + Follow
479 symbols 1,112 edges 97 files 210 documented · 44% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

eBPF Manager

License

This repository implements a manager on top of Cilium's eBPF library. This declarative manager simplifies attaching and detaching eBPF programs by controlling their entire life cycle. It was built with the intention of unifying how eBPF is used in large scale projects such as the Datadog Agent. By using the same declarative conventions, multiple teams can quickly collaborate on complex eBPF programs by sharing maps, programs or even hook points without having to worry about the setup of complex program types.

Requirements

Getting started

You can find many examples using the manager in examples/. For a real world use case, check out the Datadog Agent.

Useful resources

License

  • Unless explicitly specified otherwise, the golang code in this repository is under the MIT License.
  • The eBPF programs are under the GPL v2 License.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 188
Function 177
Class 68
Struct 31
TypeAlias 8
Interface 3
Enum 2
FuncType 2

Languages

Go76%
C15%
C++9%

Modules by API surface

manager.go59 symbols
examples/include/bpf_helper_defs.h37 symbols
probe.go30 symbols
selectors.go23 symbols
tracefs.go16 symbols
netlink.go13 symbols
perfmap.go12 symbols
perf_event.go12 symbols
tc.go11 symbols
ringbuffer.go9 symbols
map.go8 symbols
socket.go7 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add ebpf-manager \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page