Can not find systemtap-tapset.tar.gz/hotspot stp files in OpenJDK9

Mahesh Pujari pujarimahesh_kumar at
Mon Jun 8 10:37:58 UTC 2015

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]

1. Place all files in a directy by removing ".in" extension i.e. from to hotspot.stp
2. Remove file, as it seems the probes gc_collect_* don't exists in OpenJdk9.
3. Replace @ABS_CLIENT_LIBJVM_SO@ and @ABS_SERVER_LIBJVM_SO@ in all the files with JAVA_HOME/lib/amd64/client/ and JAVA_HOME/lib/amd64/server/ (give complete path)
4. 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.


On Monday, June 8, 2015 11:39 AM, Mahesh Pujari <pujarimahesh_kumar at> 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> wrote:

* Mahesh Pujari <pujarimahesh_kumar at> [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/

The various systemtap files are hosted in the IcedTea repositories. The
latest version I know of is in IcedTea7:

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


PGP Key: 66484681 (
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681

More information about the hotspot-dev mailing list