Examples

Every runnable example in this repo, mapped to the chapter it supports.

Each hands-on chapter has a matching runnable example under examples/. Each pairs an Aya (Rust) user-space loader with its eBPF program and a verify script.

Example What it shows
03-observability-stack Observability stack
06-hello-world Hello world
07-kprobe-unlink Kprobe unlink
08-fentry-unlink Fentry unlink
09-opensnoop Opensnoop
10-sigsnoop Sigsnoop
11-execsnoop Execsnoop
12-exitsnoop Exitsnoop
13-bashreadline Bashreadline
14-uprobe-rust Uprobe rust
15-btf-uprobe Btf uprobe
16-container-targets Container targets
17-sslsniff Sslsniff
18-funclatency Funclatency
19-goroutine-states Goroutine states
20-javagc Javagc
21-runqlat Runqlat
22-hardirqs Hardirqs
23-profile Profile
24-memleak Memleak
25-biopattern Biopattern
26-energy Energy
27-tcpconnlat Tcpconnlat
28-tcpstates Tcpstates
29-http-l7 Http l7
30-sockops Sockops
31-tc-classify Tc classify
32-xdp-drop Xdp drop
33-xdp-capture Xdp capture
34-xdp-lb Xdp lb
35-xdp-test Xdp test
36-tcx Tcx
37-lsm-confine Lsm confine
38-signal-kill Signal kill
39-pidhide Pidhide
40-lsm-fileprotect Lsm fileprotect
41-sudoadd Sudoadd
42-secsensor Secsensor
43-scx-simple Scx simple
44-scx-nest Scx nest
45-nginx-probe Nginx probe
46-three-signals Three signals
47-pg-probe Pg probe
48-pin-demo Pin demo
49-syscall-prog Syscall prog
50-user-rb User rb
51-userspace-ebpf Userspace ebpf
52-kfunc-task Kfunc task
53-bpf-token Bpf token
54-bpf-timer Bpf timer
55-structops-cc Structops cc
56-dynptr-arena Dynptr arena
57-bpf-iter Bpf iter
58-core Core
59-bpf-lifecycle Bpf lifecycle
60-offload Offload
61-power Power
62-correlation Correlation
63-capstone Final project
64-bpftrace-python Bpftrace python
65-bpftool-python Bpftool python
66-bcc-tools Bcc tools
68-he-observability He observability
69-pcp-ebpf Pcp ebpf