~/talk

BPF: Introduction, Programming Tips and Tricks

links:none on file
slides:none on file

Claims that libbpf + BPF CO-RE lets BPF programs run unchanged across kernel versions by using BTF-based relocations and read-only globals, cutting per-host compile overhead. Shows concrete tools: a selective-attach block-layer latency tracer that chooses a BTF path or a fallback and works in practice, and demonstrates map resize and bpf_no_prealloc to avoid deadlocks on large maps. Covers perf-events per-CPU links and verifier-friendly read-only globals for fast, portable control parameters.

AI-written summary · about

  1. 0:00Intro
  2. 0:20Speaker
  3. 1:19What's BPF CO-RE?
  4. 8:20"Hello world" with libbpf
  5. 9:13BPF skeleton and BPF app lifecycle
  6. 13:07Combining the open and load phases
  7. 13:42Selective attach
  8. 14:20Selective load
  9. 15:28Custom load and attach
  10. 16:25Multiple handlers for the same event
  11. 17:26Reading kernel structure's fields
  12. 21:33How to tell if a field exists?
  13. 22:24How to deal with kernel API changes?
  14. 24:41Control BPF behavior with global variable
  15. 27:21Reduce map pre-allocation overhead
  16. 28:59Determine the map size at runtime
  17. 29:42Use global variables instead of map
~/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.