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.

Approved by: re (cperciva)

(cherry picked from commit 3e1155ade1baab51458374efd0295bdf6db455fc)
(cherry picked from commit e620e088cbd1c062655eee825aaf4f80bd255e1f)
(cherry picked from commit 0a21a6659e5dfe503da587fb0460ae19bd765859)

Details

Provenance
jhibbitsAuthored on Mar 11 2023, 4:30 PM
Parents
rG5e49311e0177: epair: Simplify the transmit path and address lost wakeups
Branches
Unknown
Tags
Unknown