Commit d4687ff
committed
fix: use fp unwinding mode when running
Go does not produce .eh_frame sections needed for dwarf unwinding.
In dwarf mode, perf captures a stack snapshot that we can use to fall
back to frame pointer unwinding via framehop. However on arm64, the
snapshot is missing a key register (x29/FP) due to Go's non-standard
function calling convention, so the framehop fallback fails.
Using callgraph mode fp avoids this entirely: the kernel performs the
unwinding itself with full access to the stack.go test
1 parent 106e731 commit d4687ff
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments