You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate frame-pointer unwinder into stack trace functions
Summary:
Wire up the frame-pointer unwinder in getStackTrace(), getStackTraceSafe(), and getStackTraceHeap() for faster stack traces when FOLLY_FB_UNWINDER_ENABLED=1 is set and kernel 6.11+ with PROCMAP_QUERY is available.
The shared logic is factored into a single signal-safe helper, tryFramePointerUnwind(), which invokes the folly_debugging_backtrace_raw weak symbol; all three entry points delegate to it instead of duplicating the unwind block.
Falls back automatically to existing unwinders (unw_backtrace, libunwind step loop, or heap-allocated libunwind) when frame-pointer unwinding is disabled, unavailable, or fails.
Reviewed By: mcfi, yfeldblum
Differential Revision: D90648704
fbshipit-source-id: 5f40718e0b922fdb88a795a40563e1a938dee84b
0 commit comments