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
F172769265: D37218.diff
Sun, Sep 20, 9:01 PM
Unknown Object (File)
Fri, Sep 18, 7:17 AM
Unknown Object (File)
Fri, Sep 18, 1:34 AM
Unknown Object (File)
Fri, Sep 18, 12:41 AM
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
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