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
F135048433: D37218.id.diff
Thu, Nov 6, 2:17 AM
Unknown Object (File)
Mon, Nov 3, 8:30 PM
Unknown Object (File)
Mon, Nov 3, 8:23 PM
Unknown Object (File)
Mon, Nov 3, 8:23 PM
Unknown Object (File)
Mon, Nov 3, 8:23 PM
Unknown Object (File)
Fri, Oct 24, 7:47 PM
Unknown Object (File)
Tue, Oct 21, 4:04 AM
Unknown Object (File)
Thu, Oct 9, 1:13 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