examples/ directory
Directories ΒΆ
| Path | Synopsis |
|---|---|
| examples/cgroup_skb | This program demonstrates attaching an eBPF program to a control group. |
| examples/fentry | This program demonstrates attaching a fentry eBPF program to tcp_connect. |
| examples/kprobe | This program demonstrates attaching an eBPF program to a kernel symbol. |
| examples/kprobe_percpu | This program demonstrates attaching an eBPF program to a kernel symbol and using percpu map to collect data. |
| examples/kprobepin | This program demonstrates attaching an eBPF program to a kernel symbol. |
| examples/map_in_map | An example of using maps within maps. |
| examples/ringbuffer | |
| examples/tcprtt | This program demonstrates attaching a fentry eBPF program to tcp_close and reading the RTT from the TCP socket using CO-RE helpers. |
| examples/tcprtt_sockops | |
| examples/tcx | This program demonstrates attaching an eBPF program to a network interface with Linux TCX (Traffic Control with eBPF). |
| examples/tracepoint_in_c | This program demonstrates attaching an eBPF program to a kernel tracepoint. |
| examples/tracepoint_in_go | This program demonstrates how to attach an eBPF program to a tracepoint. |
| examples/uretprobe | |
| examples/xdp | This program demonstrates attaching an eBPF program to a network interface with XDP (eXpress Data Path). |
- Version
- v0.20.0 (latest)
- Published
- Oct 27, 2025
- Platform
- linux/amd64
- Last checked
- 4 months ago –
Tools for package owners.