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)
Thu, Feb 20, 3:22 PM
Unknown Object (File)
Thu, Feb 13, 8:17 AM
Unknown Object (File)
Thu, Feb 13, 3:50 AM
Unknown Object (File)
Wed, Feb 12, 3:11 PM
Unknown Object (File)
Wed, Jan 29, 7:46 PM
Unknown Object (File)
Tue, Jan 28, 2:36 AM
Unknown Object (File)
Jan 17 2025, 4:23 PM
Unknown Object (File)
Dec 2 2024, 1: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 Skipped
Unit
Tests Skipped
Build Status
Buildable 48100
Build 44987: arc lint + arc unit