Hacking the Kernel with Go: A Practical Introduction to eBPF
summary
Explains a concrete pipeline: C eBPF data plane compiled with clang/LLVM and verified/JITed by the kernel, with a Go control plane using cilium/ebpf and the BPF-to-go generator to load programs, attach XDP hooks, and read maps. Demonstrates an XDP packet counter that atomically increments a single-map 64-bit counter and prints per-second totals, plus a service-mesh demo (firewall + 50% canary routing) run inside a Linux VM via Lima; notes eBPF won’t run natively on macOS/Windows.
AI-written summary · about
