Bug 239805 - adding dtrace support for aarch64
Summary: adding dtrace support for aarch64
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 12.0-RELEASE
Hardware: arm64 Any
: --- Affects Many People
Assignee: freebsd-arm mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-12 17:05 UTC by Klaus Küchemann
Modified: 2019-08-23 12:09 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Küchemann 2019-08-12 17:05:00 UTC
as referenced for other applications (e.g. bug#224271 )
this also affects :

dtrace: failed to link script /root/openjdk-jdk11u/build/bsd-aarch64-normal-server-fastdebug/hotspot/variant-server/support/dtrace/dtrace.od: an error was encountered while processing / root / openjdk jdk11u / build / bsd-aarch64-normal-server-fast debug / hotspot / variant-server / libjvm / objs / classLoadingService.o
dt_modtext: /usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c (811): aarch64 not implemented


from here :
https://github.com/freebsd/freebsd/blob/master/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c

at Oracle looks better for aarch64:
https://github.com/oracle/dtrace-utils/blob/master/libdtrace/dt_link.c
(dt_link.c implements aarch64)


I just wanted to invite a few more experts to try a patch based on the Oracle sources , thanks
Comment 1 Klaus Küchemann 2019-08-23 12:09:56 UTC
I was able to ' make buildworld install world ' under FreeBSD 12.0-STABLE/aarch64
with this patch :

https://github.com/klaus4/freebsd/commit/b7d558562eaebb28910e92e94020d7696d509c25#diff-a022cd46f8e13aea89a6d4bb70e7b3c8

after the patch I also could compile openjdk11 with dtrace enabled but only with flag : 

 --with-extra-ldflags='-Wl,-z,notext' 

further discussion of debugging/implementing dtrace/aarch64 for openjdk11 here :

https://github.com/battleblow/openjdk-jdk11u/issues/62

Best Regards
Klaus