]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dtrace/powerpc: "Fix" stack traces across trap frames
authorJustin Hibbits <jhibbits@FreeBSD.org>
Sat, 11 Mar 2023 16:30:00 +0000 (11:30 -0500)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Sat, 11 Mar 2023 16:35:27 +0000 (11:35 -0500)
commit3e1155ade1baab51458374efd0295bdf6db455fc
tree637fb6fb9438679d23ae34c8049e7f2ec79ef0d9
parent635ecbf47015c259226cb47a3de8fc00c9ed5924
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.
sys/cddl/dev/dtrace/powerpc/dtrace_isa.c