Can not find systemtap-tapset.tar.gz/hotspot stp files in OpenJDK9 (original) (raw)
Mahesh Pujari pujarimahesh_kumar at yahoo.com
Mon Jun 8 10:37:58 UTC 2015
- Previous message: Can not find systemtap-tapset.tar.gz/hotspot stp files in OpenJDK9
- Next message: RFR: JDK-8085822 JEP 223: New Version-String Scheme (initial integration)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Missed to give the changes which I had to do manually on my local machine (very very minor). please see listing which contain links from which we can have tapsets and below steps were done from listing [2]
- Place all files in a directy by removing ".in" extension i.e. from hotspot.stp.in to hotspot.stp
- Remove hotspot_gc.stp.in file, as it seems the probes gc_collect_* don't exists in OpenJdk9.
- Replace @ABS_CLIENT_LIBJVM_SO@ and @ABS_SERVER_LIBJVM_SO@ in all the files with JAVA_HOME/lib/amd64/client/libjvm.so and JAVA_HOME/lib/amd64/server/libjvm.so (give complete path)
- In file hotspot-*.stp, find the probe object__alloc (in hotspot.object_alloc) and replace $HeapWordSize with 8 if we have 64 bit or else replace with 4 if its 32 bit.
Example to run a sample with HelloWorld program as below
stap -I /opt/jdk1.9.localbuild/tapset -e 'probe hotspot.object_alloc {log(probestr)}' -c '/opt/jdk1.9.localbuild/bin/java -XX:+ExtendedDTraceProbes HelloWorld'
Note: In above example "/opt/jdk1.9.localbuild/tapset" is the location where all stp files are placed and /opt/jdk1.9.localbuild/bin/java is the build of OpenJDK9 with dtrace enabled.
[1] http://icedtea.classpath.org/hg/icedtea7/file/tip/tapset [2] http://pkgs.fedoraproject.org/repo/pkgs/java-1.8.0-openjdk/systemtap-tapset.tar.gz/94ca5a45c3cb3b85c4577d0891166007/systemtap-tapset.tar.gz
On Monday, June 8, 2015 11:39 AM, Mahesh Pujari <pujarimahesh_kumar at yahoo.com> wrote:
Thanks Omair Majid and David Holmes. With few minor adjustments I was able use the hotspot tapset from IcedTea repository.
thanks and regards, Mahesh Pujari
On Friday, June 5, 2015 8:35 PM, Omair Majid <omajid at redhat.com> wrote:
- Mahesh Pujari <pujarimahesh_kumar at yahoo.com> [2015-06-05 01:23]:
I am building OpenJDK9 with dtrace enabled (on Ubuntu, its using systemtap, reference to mail list [1]). Can someone point me to where I can find systemtap-tapset.tar.gz, seems like this is needed, as this contains hotspot provider (files like tapset/hotspot-1.9.0.stp.in).
The various systemtap files are hosted in the IcedTea repositories. The latest version I know of is in IcedTea7: http://icedtea.classpath.org/hg/icedtea7/file/tip/tapset
For Fedora, we rename the files to add the OpenJDK version and put it in a single tarball: systemtap-tapset.tar.gz. They should be unchanged otherwise.
Thanks, Omair
-- PGP Key: 66484681 (http://pgp.mit.edu/) Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681
- Previous message: Can not find systemtap-tapset.tar.gz/hotspot stp files in OpenJDK9
- Next message: RFR: JDK-8085822 JEP 223: New Version-String Scheme (initial integration)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]