Page MenuHomeFreeBSD

DTrace: fix reading a 64-bits register on amd64
ClosedPublic

Authored by oshogbo on May 22 2019, 7:48 PM.
Tags
None
Referenced Files
F151932629: D20363.id57718.diff
Sat, Apr 11, 2:50 PM
Unknown Object (File)
Fri, Apr 10, 2:37 PM
Unknown Object (File)
Tue, Apr 7, 5:10 PM
Unknown Object (File)
Tue, Apr 7, 10:32 AM
Unknown Object (File)
Tue, Apr 7, 6:46 AM
Unknown Object (File)
Mon, Apr 6, 10:37 PM
Unknown Object (File)
Tue, Mar 31, 12:32 PM
Unknown Object (File)
Tue, Mar 17, 5:58 AM
Subscribers

Details

Summary

The registers in ilumos and FreeBSD have a different number.
In the illumos, last 32-bits register defined is SS an in FreeBSD is GS.
This off-by-one caused the uregs array to returns the wrong 64-bits register
on amd64.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24407
Build 23223: arc lint + arc unit

Event Timeline

markj added inline comments.
sys/cddl/dev/dtrace/amd64/dtrace_isa.c
519

I wouldn't bother with the comment in such a small block.

This revision is now accepted and ready to land.May 22 2019, 9:10 PM
This revision was automatically updated to reflect the committed changes.