Re: Issues with dtrace enabled in OpenJdk 9

2015-05-13 Thread David Holmes
Hi Mahesh, On 14/05/2015 5:00 AM, Mahesh Pujari wrote: Sorry for replying late. Thanks Staffan, I will be mailing the details as you pointed out. David, generated/dtracefiles contain just 3 header files, hotspot.h, hotspot_jni.h and hs_private.h and if we take hotspot.h file, it contains the l

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-13 Thread Mahesh Pujari
Sorry for replying late. Thanks Staffan, I will be mailing the details as you pointed out. David, generated/dtracefiles contain just 3 header files, hotspot.h, hotspot_jni.h and hs_private.h and if we take hotspot.h file, it contains the lines as below #if _DTRACE_VERSION #define HOTSPOT_CLASS_I

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-12 Thread David Holmes
On 12/05/2015 6:21 PM, Mahesh Pujari wrote: I think I have mixed up things, like thinking SDT and dtrace4linux as same, but there are not as pointed out by Staffan. So first I build jdk9 with not having SDT headers i.e. not having systemtap-dev. Build was success as expected. Next I did a build

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-12 Thread Staffan Larsen
The SDT support is maintained by the IcedTea folks. Perhaps asking on their email list [1] would get you closer, or on the hotspot-dev list. /Staffan [1] http://mail.openjdk.java.net/mailman/listinfo/distro-pkg-dev > On 12 maj 2015, at 10:21, Mahesh Pujari wrote: > > I think I have mixed up t

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-12 Thread Mahesh Pujari
I think I have mixed up things, like thinking SDT and dtrace4linux as same, but there are not as pointed out by Staffan. So first I build jdk9 with not having SDT headers i.e. not having systemtap-dev. Build was success as expected. Next I did a build having SDT headers in path (i.e. I having i

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-11 Thread Staffan Larsen
Note that SDT and dtrace4linux are different things. As far as I know, no one has tried dtrace4linux with Hotspot so you are in uncharted territories. SDT should work (if installed). Oracle Linux also has an implementation of Dtrace that I think is different from dtrace4linux. This is also untes

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-11 Thread David Holmes
On 11/05/2015 8:51 PM, Mahesh Pujari wrote: Thanks for replying back Erik. I ran as you stated i.e. using "make DTRACE_ENABLED=true" but then I realized that the configure that I was running would do the same i.e. by having CFLAGS=-DDTRACE_ENABLED=1. No it isn't the same. The linux/makefiles/

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-11 Thread Mahesh Pujari
Thanks for replying back Erik. I ran as you stated i.e. using "make DTRACE_ENABLED=true" but then I realized that the configure that I was running would do the same i.e. by having CFLAGS=-DDTRACE_ENABLED=1. When I make (using your approach and passing enable in configure), I end up with lots and

Re: Issues with dtrace enabled in OpenJdk 9

2015-05-11 Thread Erik Joelsson
Hello, I don't have any experience building with dtrace support, but the Hotspot makefiles seem to imply that it can be achieved by running: make DTRACE_ENABLED=true That variable will trigger the appropriate preprocessor flags to be added at least. See hotspot/make/linux/makefiles/dtrace.ma

Issues with dtrace enabled in OpenJdk 9

2015-05-11 Thread Mahesh Pujari
Hi all, I am trying make OpenJdk 9 with dtrace enabled, on my Ubuntu machine (installed with https://github.com/dtrace4linux/linux), with configuration as below (and I am noob). ./configure --enable-option-checking=fatal --with-debug-level=slowdebug --with-target-bits=64 --disable-zip-debug-info