~/talk

bpftrace internals

slides:none on file

Explains exactly how bpftrace compiles scripts into eBPF: map accesses become lookups + updates or per-CPU increments, helpers translate to register calls, and printf writes an ID + payload into the perf ring buffer (so heavy printing drops data). Shows that using @ = count() or per-CPU maps avoids races and drops runtime from ~266s to ~78s vs a global data fast path that benchmarks to ~4s for the simple case. Adds BTF support to read kernel types, and shows trampolines yield ~5x less overhead than kprobes.

AI-written summary · about

  1. 0:00Start
  2. 1:19How Bpf Trace Works
  3. 4:24Context of the Probe
  4. 7:12Pseudocode
  5. 12:17Global Data
  6. 15:27Access Probe Arguments
  7. 16:55Trace Point Data
  8. 19:34Printf
  9. 26:10Histograms
  10. 30:29Histograms Begin and End Functions
  11. 32:28Recent Features
  12. 38:58K Log Start Tool
  13. 39:40New Functions
  14. 41:12Escapee Output
  15. 42:09Is the Thread Id Part of the Data That You Can Get in a Trace Function
~/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.