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)
Mar 23 2024, 10:58 AM
Unknown Object (File)
Jan 13 2024, 1:00 AM
Unknown Object (File)
Dec 20 2023, 8:19 AM
Unknown Object (File)
Nov 10 2023, 2:19 PM
Unknown Object (File)
Nov 8 2023, 8:50 PM
Unknown Object (File)
Oct 9 2023, 12:52 PM
Unknown Object (File)
Oct 9 2023, 12:52 PM
Unknown Object (File)
Oct 7 2023, 7:43 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