~/talk

eBPF User Stack Trace Issue and Solutions

Talkat LinuxCon @ OSS NA 2024 · 2024-04-16..04-18· [linux-and-operating-systems]
links:none on file
slides:none on file

Two concrete solutions address bpf inability to unwind user stacks without frame pointers: PR #4463 captures user registers and part of the user stack in the BPF program and performs DWARF unwinding via libunwind in user space, giving accurate traces but adding memory and CPU overhead; PR #4679 implements a stack-scan that collects any text addresses found on the user stack, producing heuristic traces that work on binaries without unwind info but include false positives; both integrate with BCC, one fixes missing C++ new operator frames, and kernel support (post-6.1) affects deployment.

AI-written summary · about

  1. 0:00eBPF user stack trace issues
  2. 1:06Motivation and background
  3. 2:53Stack frames and unwinding
  4. 5:00eBPF tools architecture issue
  5. 7:30Solution for no unwind tables
  6. 10:53Solution for no unwind info
  7. 16:07Implementation details
  8. 17:44Q&A
~/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.