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
F152993706: D37218.diff
Sat, Apr 18, 12:49 PM
Unknown Object (File)
Mon, Apr 13, 3:19 PM
Unknown Object (File)
Mon, Apr 13, 6:15 AM
Unknown Object (File)
Sun, Apr 12, 11:12 PM
Unknown Object (File)
Tue, Mar 24, 2:37 PM
Unknown Object (File)
Mon, Mar 23, 12:44 AM
Unknown Object (File)
Mar 17 2026, 6:06 AM
Unknown Object (File)
Mar 16 2026, 11:49 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