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
F156385589: D37218.id112451.diff
Wed, May 13, 5:36 AM
Unknown Object (File)
Wed, May 6, 9:37 PM
Unknown Object (File)
Wed, May 6, 12:21 AM
Unknown Object (File)
Fri, May 1, 12:04 PM
Unknown Object (File)
Thu, Apr 30, 4:57 PM
Unknown Object (File)
Mon, Apr 27, 8:22 AM
Unknown Object (File)
Sat, Apr 25, 7:41 AM
Unknown Object (File)
Tue, Apr 21, 7:50 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