Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/solaris/sample/dtrace/README.txt
32285 views
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
45