Home | History | Annotate | only in /prebuilts/jdk/jdk8/darwin-x86/sample/dtrace
Up to higher level directory
NameDateSize
helpers/21-Aug-2018
hotspot/21-Aug-2018
hotspot_jni/21-Aug-2018
README.txt21-Aug-20181.1K

README.txt

      1 DTrace HotSpot probes samples
      2 =============================
      3 
      4 This directory contains the list of D scripts which could be used to trace
      5 Java application with help of Solaris(tm) 10 Dynamic Tracing (DTrace)
      6 probes.
      7 
      8 The directory is organized as:
      9 
     10 * helpers/
     11 
     12   This directory contains the auxiliary script to launch Java application
     13   with D script to debug. See more comments in the scripts.
     14 
     15 * hotspot/
     16   
     17   This directory contains D scripts which demonstrate usage of 'hotspot'
     18   provider probes.
     19 
     20 
     21 * hotspot_jni/
     22 
     23   This directory contains D scripts which demonstrate usage of 'hotspot_jni'
     24   provider probes.
     25 
     26 
     27 
     28 Requirements to run DTrace
     29 ==========================
     30 
     31 1. dtrace framework should be installed; (check if /usr/sbin/dtrace exists)
     32 
     33 2. the user should have the following rights: 
     34    dtrace_proc, dtrace_user, dtrace_kernel
     35 
     36     To give a user a privilege on login, insert a line into the 
     37     /etc/user_attr file of the form: 
     38     user-name::::defaultpriv=basic,dtrace_proc,dtrace_user,dtrace_kernel
     39 
     40     or
     41 
     42     To give a running process an DTrace privilege, use the ppriv(1) command:
     43     # ppriv -s A+privilege process-ID
     44