RFR(M): 8032462 Change the linux SDT implementation to use USDT2 instead of USDT1

Staffan Larsen staffan.larsen at oracle.com
Wed Jan 22 23:36:02 PST 2014


The only usage today of the DTrace macros under the USDT1 define is the SDT provider on linux. This can be changed to use the USDT2 style by preprocessing the .d files into .h files with the dtrace utility in the same way as we do on solaris and OS X.

I have also moved the provider definition files (hotspot.d, hotspot_jni.d and hs_private.d) to a common directory instead of having one identical copy per platform.

I would really like to have a review from somebody on the IcedTea team since I haven’t been able to fully verify this change by running systemtap.

Once this change is done, we can proceed to remove the USDT1 style macros.

webrev: http://cr.openjdk.java.net/~sla/8032462/webrev.00/
bug: https://bugs.openjdk.java.net/browse/JDK-8032462

testing: vm.dtrace.testlist in nsk

Thanks,
/Staffan


More information about the serviceability-dev mailing list