~/talk

Kernel tracing with BPF

links:none on file
slides:none on file

eBPF is used to build live kernel tracers like bio top (BCC Python wrapper plus ~230 lines of code with embedded C) that compiles via LLVM to eBPF bytecode, passes verifier checks, and emits results over per‑CPU perf ring buffers or BPF maps; the same workload reduces to ~30 lines in bpftrace, which exposes ~50,000 kprobes and produces histograms (examples show ~25k–30k calls). Requires root, cannot scope eBPF to namespaces today, and kprobe overhead is roughly ~20 extra instructions plus JIT and cache effects.

AI-written summary · about

  1. 0:00Introduction
  2. 0:41What is BPF
  3. 2:31Example
  4. 3:04Biotop
  5. 3:42Python Script
  6. 5:34BPF bytecode
  7. 7:42Block functions
  8. 11:00Runtime BPF
  9. 12:17BPF Choice
  10. 14:54Results
  11. 18:34BCC Trace
  12. 20:42ICMP Trace
~/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.