~/talk

Real World Debugging with eBPF

links:none on file
slides:none on file

Uses eBPF (implemented with bpftrace) to attach uprobes to Go binaries, compute per-goroutine timing by reading the runtime G pointer from FS-8 and struct offsets (pahole to find offsets), and avoid unsafe ureturn probes by instrumenting each return address. Finds Docker network list slowness traced to buildDetailedNetworkResources called 16 times at ~200 ms each, and shows eBPF adds <3% overhead vs GDB’s ~22× slowdown. Demonstrates goroutine-creation tracing and stack walking to root a Cilium memory leak; warns about duplicate events, missing callers and PIE build issues.

AI-written summary · about

  1. 0:00Intro
  2. 2:17Reproduce & Narrow down
  3. 3:17Debugging Ideas
  4. 4:06Silver bullet: printf
  5. 4:45Traditional debugger: GDB
  6. 6:33Benchmark for GDB
  7. 7:30Internal tool: pprof
  8. 8:57eBPF: bpftrace script
  9. 11:14Solution to concurrency problem
  10. 12:01uretprobe: implementation and problems
  11. 13:53Solution to uretprobe problem
  12. 15:46Solution to TID problem
  13. 20:08Run bpftrace script
  14. 21:36Benchmark for eBPF
  15. 22:04Recap for Docker issue
  16. 26:34Traditional debugger: coredump
  17. 28:49eBPF: leaking goroutine tracing
  18. 29:39Stage 1: backtrace for leaking goroutines creators
  19. 35:17Stage 2: backtrace for leaking goroutines
  20. 40:05Recap Cilium issue
  21. 42:03Entrypoint: duplicate events
  22. 43:21backtrace: missing caller
  23. 45:16Happy debugging
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.