Bug 239805

Summary: adding dtrace support for aarch64
Product: Base System Reporter: Klaus Küchemann <maciphone2>
Component: armAssignee: freebsd-arm (Nobody) <freebsd-arm>
Status: Closed FIXED    
Severity: Affects Many People CC: emaste, linimon, markj
Priority: ---    
Version: 12.0-RELEASE   
Hardware: arm64   
OS: Any   

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
Comment 2 Klaus Küchemann 2019-11-14 02:33:17 UTC
`ve made this into a git-PR :
https://github.com/freebsd/freebsd/pull/415
Regards