Skip to content

Fall back to FP callchain when DWARF unwinding truncates#768

Open
DaniPopes wants to merge 2 commits into
mstange:mainfrom
DaniPopes:dani/fp-callchain-fallback
Open

Fall back to FP callchain when DWARF unwinding truncates#768
DaniPopes wants to merge 2 commits into
mstange:mainfrom
DaniPopes:dani/fp-callchain-fallback

Conversation

@DaniPopes
Copy link
Copy Markdown
Contributor

@DaniPopes DaniPopes commented Mar 27, 2026

Always request PERF_SAMPLE_CALLCHAIN with user frames so the kernel walks the frame pointer chain at sample time with access to the full stack. When DWARF unwinding is truncated (e.g. due to the 32 KB captured stack window), splice in the remaining deeper user frames from the kernel's FP callchain.

Somewhat overlaps with #736.

Always request PERF_SAMPLE_CALLCHAIN with user frames so the kernel
walks the frame pointer chain at sample time with access to the full
stack. When DWARF unwinding is truncated (e.g. due to the 32 KB
captured stack window), splice in the remaining deeper user frames
from the kernel's FP callchain.
@DaniPopes DaniPopes force-pushed the dani/fp-callchain-fallback branch from 45c625c to c136824 Compare March 27, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant