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)
Sat, Sep 12, 4:37 PM
Unknown Object (File)
Wed, Sep 9, 12:22 AM
Unknown Object (File)
Sat, Sep 5, 4:51 AM
Unknown Object (File)
Thu, Sep 3, 3:20 PM
Unknown Object (File)
Wed, Sep 2, 1:24 AM
Unknown Object (File)
Tue, Sep 1, 8:17 PM
Unknown Object (File)
Tue, Sep 1, 3:28 PM
Unknown Object (File)
Sat, Aug 22, 7:27 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