jdk/src/sample/solaris/dtrace/README.txt
author hseigel
Wed, 01 Mar 2017 08:00:02 -0500
changeset 46194 5596e6f63072
parent 25859 3317bb8137f4
permissions -rw-r--r--
8172307: Remove ununsed JVM API JVM_GetModuleByPackageName() Summary: Remove get_module_by_package_name() etc., and unneeded test. Reviewed-by: sspitsyn, gtriantafill

DTrace HotSpot probes samples
=============================

This directory contains the list of D scripts which could be used to trace
Java application with help of Solaris(tm) 10 Dynamic Tracing (DTrace)
probes.

The directory is organized as:

* helpers/

  This directory contains the auxiliary script to launch Java application
  with D script to debug. See more comments in the scripts.

* hotspot/
  
  This directory contains D scripts which demonstrate usage of 'hotspot'
  provider probes.


* hotspot_jni/

  This directory contains D scripts which demonstrate usage of 'hotspot_jni'
  provider probes.



Requirements to run DTrace
==========================

1. dtrace framework should be installed; (check if /usr/sbin/dtrace exists)

2. the user should have the following rights: 
   dtrace_proc, dtrace_user, dtrace_kernel

    To give a user a privilege on login, insert a line into the 
    /etc/user_attr file of the form: 
    user-name::::defaultpriv=basic,dtrace_proc,dtrace_user,dtrace_kernel

    or

    To give a running process an DTrace privilege, use the ppriv(1) command:
    # ppriv -s A+privilege process-ID