HomeFreeBSD

dtrace/powerpc: "Fix" stack traces across trap frames

Description

dtrace/powerpc: "Fix" stack traces across trap frames

In function boundary tracing the link register is not yet saved to the
save stack location, so the save point contains whatever the previous
'lr' save was, or even garbage, at the time the trap is taken. Address
this by explicitly loading the link register from the trap frame instead
of the stack, and propagate that out.

Details

Provenance
jhibbitsAuthored on Mar 11 2023, 4:30 PM
Parents
rG635ecbf47015: dtrace/powerpc: Adjust AFRAMES for fbt and profile
Branches
Unknown
Tags
Unknown