Page MenuHomeFreeBSD

Fixup compilation and enable dtrace support for mips64
ClosedPublic

Authored by lidl on Sep 4 2017, 10:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 12:53 AM
Unknown Object (File)
Feb 22 2024, 1:51 PM
Unknown Object (File)
Feb 22 2024, 5:19 AM
Unknown Object (File)
Feb 9 2024, 11:08 AM
Unknown Object (File)
Dec 20 2023, 3:09 AM
Unknown Object (File)
Dec 16 2023, 4:56 AM
Unknown Object (File)
Oct 28 2023, 6:34 PM
Unknown Object (File)
Oct 4 2023, 5:02 PM
Subscribers

Details

Summary

As it stands right now, one cannot compile the dtrace
modules for mips64. With this patch, the modules
compile, and can be loaded into the kernel via
kldload (or just by running 'dtrace -l').

While the dtrace functionality does not currently work,
this is a useful stepping stone to further explore getting
it to work.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/modules/dtrace/dtraceall/dtraceall.c
73 ↗(On Diff #32650)

Does __mips64__ actually get defined? AFAIK __mips__ is on both 32- and 64-bit so it wouldn't make a difference.

sys/modules/dtrace/dtraceall/dtraceall.c
73 ↗(On Diff #32650)

Heh. You are correct, gcc (4.2.1, the in-tree one) only defines
mips64 not mips64__.

I will remove the mips64 code.

Address emaste's comment about mips64

This revision is now accepted and ready to land.Sep 6 2017, 12:17 AM
This revision was automatically updated to reflect the committed changes.