0N/ADTrace HotSpot probes samples
0N/A=============================
0N/A
0N/AThis directory contains the list of D scripts which could be used to trace
0N/AJava application with help of Solaris(tm) 10 Dynamic Tracing (DTrace)
0N/Aprobes.
0N/A
0N/AThe directory is organized as:
0N/A
0N/A* helpers/
0N/A
0N/A This directory contains the auxiliary script to launch Java application
0N/A with D script to debug. See more comments in the scripts.
0N/A
0N/A* hotspot/
0N/A
0N/A This directory contains D scripts which demonstrate usage of 'hotspot'
0N/A provider probes.
0N/A
0N/A
0N/A* hotspot_jni/
0N/A
0N/A This directory contains D scripts which demonstrate usage of 'hotspot_jni'
0N/A provider probes.
0N/A
0N/A
0N/A
0N/ARequirements to run DTrace
0N/A==========================
0N/A
0N/A1. dtrace framework should be installed; (check if /usr/sbin/dtrace exists)
0N/A
0N/A2. the user should have the following rights:
0N/A dtrace_proc, dtrace_user, dtrace_kernel
0N/A
0N/A To give a user a privilege on login, insert a line into the
0N/A /etc/user_attr file of the form:
0N/A user-name::::defaultpriv=basic,dtrace_proc,dtrace_user,dtrace_kernel
0N/A
0N/A or
0N/A
0N/A To give a running process an DTrace privilege, use the ppriv(1) command:
0N/A # ppriv -s A+privilege process-ID