Page MenuHomeFreeBSD

dtrace: Fix up %rip for invop probes on x86
ClosedPublic

Authored by markj on Oct 30 2022, 8:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 24, 7:48 AM
Unknown Object (File)
Mon, Apr 14, 3:59 PM
Unknown Object (File)
Sun, Apr 13, 6:21 PM
Unknown Object (File)
Mar 21 2025, 8:50 PM
Unknown Object (File)
Mar 13 2025, 10:27 AM
Unknown Object (File)
Mar 10 2025, 10:32 AM
Unknown Object (File)
Feb 22 2025, 1:06 PM
Unknown Object (File)
Feb 20 2025, 3:22 PM
Subscribers

Details

Summary

When a breakpoint exception is raised, the saved value of %rip points to
the instruction following the breakpoint. However, when fetching the
value of %rip using regs[], it's more natural to provide the address of
the breakpoint itself, so modify the kinst and fbt providers accordingly.

Reported by: khng

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable