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)
Tue, Jun 9, 11:34 AM
Unknown Object (File)
May 23 2026, 1:28 AM
Unknown Object (File)
May 16 2026, 2:31 AM
Unknown Object (File)
May 16 2026, 2:31 AM
Unknown Object (File)
May 16 2026, 2:30 AM
Unknown Object (File)
May 13 2026, 5:36 AM
Unknown Object (File)
May 6 2026, 9:37 PM
Unknown Object (File)
May 6 2026, 12:21 AM
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