Function parameters with BTF
summary
Proposal shows using BTF to print return values and every argument for function graph and ftrace by building a quick lookup table that maps IPs to BTF prototypes, optionally generating per-function BPF bytecode for fast capture. It supports entry and exit reads, pointer dereference and snapshots of structures, and type-based enables like filter by prototype (e.g., all functions taking a socket). Prototype exists, no benchmarks yet, design aims for low overhead.
AI-written summary · about
chapters (7)
- 0:00Introduction to BTF function parameters
- 3:19Current BTF function graph features
- 6:50Tracing function parameters with BTF
- 10:02Filtering by parameter types
- 13:59Function-specific parameter tracing
- 17:10Global variables and object tracing
- 19:58Optimizing parameter tracing performance
related talks
37mThe BTF file format, more than just debugging
47mBPF: The Status of BTF, producers, consumers.
46mbpftrace internals
08mLightning Talk: BTFGen: one Step Closer to Truly Portable eBPF Programs
25mAn introduction to bpftrace tracing language
21mPerformance Wins with BPF: Getting Started
28mbpftrace: what is it, what's new, and where is it going
34mWhat's new in the BPF world?
