author | mseledtsov |
Tue, 27 Nov 2018 15:52:34 -0800 | |
changeset 52704 | 64413aaea8ed |
parent 52621 | f7309a1491d9 |
child 53895 | b22d8ae270a2 |
permissions | -rw-r--r-- |
50113 | 1 |
/* |
2 |
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
package jdk.test.lib.jfr; |
|
26 |
||
27 |
import jdk.jfr.EventType; |
|
28 |
||
29 |
/** |
|
30 |
* Contains id for events that are shipped with the JDK. |
|
31 |
* |
|
32 |
*/ |
|
33 |
public class EventNames { |
|
34 |
||
35 |
public final static String PREFIX = "jdk."; |
|
36 |
private static final String GC_CATEGORY = "GC"; |
|
37 |
||
38 |
// JVM Configuration |
|
39 |
public final static String JVMInformation = PREFIX + "JVMInformation"; |
|
40 |
public final static String InitialSystemProperty = PREFIX + "InitialSystemProperty"; |
|
41 |
public final static String IntFlag = PREFIX + "IntFlag"; |
|
42 |
public final static String UnsignedIntFlag = PREFIX + "UnsignedIntFlag"; |
|
43 |
public final static String LongFlag = PREFIX + "LongFlag"; |
|
44 |
public final static String UnsignedLongFlag = PREFIX + "UnsignedLongFlag"; |
|
45 |
public final static String DoubleFlag = PREFIX + "DoubleFlag"; |
|
46 |
public final static String BooleanFlag = PREFIX + "BooleanFlag"; |
|
47 |
public final static String StringFlag = PREFIX + "StringFlag"; |
|
48 |
public final static String IntFlagChanged = PREFIX + "IntFlagChanged"; |
|
49 |
public final static String UnsignedIntFlagChanged = PREFIX + "UnsignedIntFlagChanged"; |
|
50 |
public final static String LongFlagChanged = PREFIX + "LongFlagChanged"; |
|
51 |
public final static String UnsignedLongFlagChanged = PREFIX + "UnsignedLongFlagChanged"; |
|
52 |
public final static String DoubleFlagChanged = PREFIX + "DoubleFlagChanged"; |
|
53 |
public final static String BooleanFlagChanged = PREFIX + "BooleanFlagChanged"; |
|
54 |
public final static String StringFlagChanged = PREFIX + "StringFlagChanged"; |
|
55 |
||
56 |
// Runtime |
|
57 |
public final static String ThreadStart = PREFIX + "ThreadStart"; |
|
58 |
public final static String ThreadEnd = PREFIX + "ThreadEnd"; |
|
59 |
public final static String ThreadSleep = PREFIX + "ThreadSleep"; |
|
60 |
public final static String ThreadPark = PREFIX + "ThreadPark"; |
|
61 |
public final static String JavaMonitorEnter = PREFIX + "JavaMonitorEnter"; |
|
62 |
public final static String JavaMonitorWait = PREFIX + "JavaMonitorWait"; |
|
63 |
public final static String JavaMonitorInflate = PREFIX + "JavaMonitorInflate"; |
|
64 |
public final static String ClassLoad = PREFIX + "ClassLoad"; |
|
65 |
public final static String ClassDefine = PREFIX + "ClassDefine"; |
|
66 |
public final static String ClassUnload = PREFIX + "ClassUnload"; |
|
67 |
public final static String SafepointBegin = PREFIX + "SafepointBegin"; |
|
52704
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
68 |
public final static String SafepointStateSynchronization = PREFIX + "SafepointStateSynchronization"; |
50113 | 69 |
public final static String SafepointWaitBlocked = PREFIX + "SafepointWaitBlocked"; |
70 |
public final static String SafepointCleanup = PREFIX + "SafepointCleanup"; |
|
71 |
public final static String SafepointCleanupTask = PREFIX + "SafepointCleanupTask"; |
|
72 |
public final static String SafepointEnd = PREFIX + "SafepointEnd"; |
|
73 |
public final static String ExecuteVMOperation = PREFIX + "ExecuteVMOperation"; |
|
74 |
public final static String Shutdown = PREFIX + "Shutdown"; |
|
75 |
public final static String JavaThreadStatistics = PREFIX + "JavaThreadStatistics"; |
|
76 |
public final static String ClassLoadingStatistics = PREFIX + "ClassLoadingStatistics"; |
|
77 |
public final static String ClassLoaderStatistics = PREFIX + "ClassLoaderStatistics"; |
|
78 |
public final static String ThreadAllocationStatistics = PREFIX + "ThreadAllocationStatistics"; |
|
79 |
public final static String ExecutionSample = PREFIX + "ExecutionSample"; |
|
80 |
public final static String NativeMethodSample = PREFIX + "NativeMethodSample"; |
|
81 |
public final static String ThreadDump = PREFIX + "ThreadDump"; |
|
82 |
public final static String OldObjectSample = PREFIX + "OldObjectSample"; |
|
83 |
public final static String BiasedLockRevocation = PREFIX + "BiasedLockRevocation"; |
|
84 |
public final static String BiasedLockSelfRevocation = PREFIX + "BiasedLockSelfRevocation"; |
|
85 |
public final static String BiasedLockClassRevocation = PREFIX + "BiasedLockClassRevocation"; |
|
52704
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
86 |
// This event is hard to test |
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
87 |
public final static String ReservedStackActivation = PREFIX + "ReservedStackActivation"; |
50113 | 88 |
|
89 |
// GC |
|
90 |
public final static String GCHeapSummary = PREFIX + "GCHeapSummary"; |
|
91 |
public final static String MetaspaceSummary = PREFIX + "MetaspaceSummary"; |
|
92 |
public final static String MetaspaceGCThreshold = PREFIX + "MetaspaceGCThreshold"; |
|
93 |
public final static String MetaspaceAllocationFailure = PREFIX + "MetaspaceAllocationFailure"; |
|
94 |
public final static String MetaspaceOOM = PREFIX + "MetaspaceOOM"; |
|
95 |
public final static String MetaspaceChunkFreeListSummary = PREFIX + "MetaspaceChunkFreeListSummary"; |
|
96 |
public final static String PSHeapSummary = PREFIX + "PSHeapSummary"; |
|
97 |
public final static String G1HeapSummary = PREFIX + "G1HeapSummary"; |
|
98 |
public final static String G1HeapRegionInformation = PREFIX + "G1HeapRegionInformation"; |
|
99 |
public final static String G1HeapRegionTypeChange = PREFIX + "G1HeapRegionTypeChange"; |
|
100 |
public final static String TenuringDistribution = PREFIX + "TenuringDistribution"; |
|
101 |
public final static String GarbageCollection = PREFIX + "GarbageCollection"; |
|
52704
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
102 |
public final static String ParallelOldGarbageCollection = PREFIX + "ParallelOldGarbageCollection"; |
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
103 |
public final static String ParallelOldCollection = ParallelOldGarbageCollection; |
50113 | 104 |
public final static String YoungGarbageCollection = PREFIX + "YoungGarbageCollection"; |
105 |
public final static String OldGarbageCollection = PREFIX + "OldGarbageCollection"; |
|
106 |
public final static String G1GarbageCollection = PREFIX + "G1GarbageCollection"; |
|
107 |
public final static String G1MMU = PREFIX + "G1MMU"; |
|
52704
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
108 |
public final static String EvacuationInformation = PREFIX + "EvacuationInformation"; |
50113 | 109 |
public final static String GCReferenceStatistics = PREFIX + "GCReferenceStatistics"; |
110 |
public final static String ObjectCountAfterGC = PREFIX + "ObjectCountAfterGC"; |
|
111 |
public final static String PromoteObjectInNewPLAB = PREFIX + "PromoteObjectInNewPLAB"; |
|
112 |
public final static String PromoteObjectOutsidePLAB = PREFIX + "PromoteObjectOutsidePLAB"; |
|
113 |
public final static String PromotionFailed = PREFIX + "PromotionFailed"; |
|
114 |
public final static String EvacuationFailed = PREFIX + "EvacuationFailed"; |
|
115 |
public final static String ConcurrentModeFailure = PREFIX + "ConcurrentModeFailure"; |
|
116 |
public final static String GCPhasePause = PREFIX + "GCPhasePause"; |
|
117 |
public final static String GCPhasePauseLevel1 = PREFIX + "GCPhasePauseLevel1"; |
|
118 |
public final static String GCPhasePauseLevel2 = PREFIX + "GCPhasePauseLevel2"; |
|
119 |
public final static String GCPhasePauseLevel3 = PREFIX + "GCPhasePauseLevel3"; |
|
52704
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
120 |
public final static String GCPhasePauseLevel4 = PREFIX + "GCPhasePauseLevel4"; |
50113 | 121 |
public final static String ObjectCount = PREFIX + "ObjectCount"; |
122 |
public final static String GCConfiguration = PREFIX + "GCConfiguration"; |
|
123 |
public final static String GCSurvivorConfiguration = PREFIX + "GCSurvivorConfiguration"; |
|
124 |
public final static String GCTLABConfiguration = PREFIX + "GCTLABConfiguration"; |
|
125 |
public final static String GCHeapConfiguration = PREFIX + "GCHeapConfiguration"; |
|
126 |
public final static String YoungGenerationConfiguration = PREFIX + "YoungGenerationConfiguration"; |
|
127 |
public final static String G1AdaptiveIHOP = PREFIX + "G1AdaptiveIHOP"; |
|
128 |
public final static String G1EvacuationYoungStatistics = PREFIX + "G1EvacuationYoungStatistics"; |
|
129 |
public final static String G1EvacuationOldStatistics = PREFIX + "G1EvacuationOldStatistics"; |
|
130 |
public final static String G1BasicIHOP = PREFIX + "G1BasicIHOP"; |
|
131 |
public final static String AllocationRequiringGC = PREFIX + "AllocationRequiringGC"; |
|
51877
5f931e3e7a63
8196341: Add JFR events for parallel phases of G1
lkorinth
parents:
50879
diff
changeset
|
132 |
public final static String GCPhaseParallel = PREFIX + "GCPhaseParallel"; |
52704
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
133 |
public final static String GCPhaseConcurrent = PREFIX + "GCPhaseConcurrent"; |
50113 | 134 |
|
135 |
// Compiler |
|
136 |
public final static String Compilation = PREFIX + "Compilation"; |
|
137 |
public final static String CompilerPhase = PREFIX + "CompilerPhase"; |
|
138 |
public final static String CompilationFailure = PREFIX + "CompilationFailure"; |
|
139 |
public final static String CompilerInlining = PREFIX + "CompilerInlining"; |
|
140 |
public final static String CompilerStatistics = PREFIX + "CompilerStatistics"; |
|
52704
64413aaea8ed
8213914: [TESTBUG] Several JFR VM events are not covered by tests
mseledtsov
parents:
52621
diff
changeset
|
141 |
public final static String CompilerConfiguration = PREFIX + "CompilerConfiguration"; |
50113 | 142 |
public final static String CodeCacheStatistics = PREFIX + "CodeCacheStatistics"; |
143 |
public final static String CodeCacheConfiguration = PREFIX + "CodeCacheConfiguration"; |
|
144 |
public final static String CodeSweeperStatistics = PREFIX + "CodeSweeperStatistics"; |
|
145 |
public final static String CodeSweeperConfiguration = PREFIX + "CodeSweeperConfiguration"; |
|
146 |
public final static String SweepCodeCache = PREFIX + "SweepCodeCache"; |
|
147 |
public final static String CodeCacheFull = PREFIX + "CodeCacheFull"; |
|
148 |
public final static String ObjectAllocationInNewTLAB = PREFIX + "ObjectAllocationInNewTLAB"; |
|
149 |
public final static String ObjectAllocationOutsideTLAB = PREFIX + "ObjectAllocationOutsideTLAB"; |
|
150 |
||
151 |
// OS |
|
152 |
public final static String OSInformation = PREFIX + "OSInformation"; |
|
153 |
public final static String CPUInformation = PREFIX + "CPUInformation"; |
|
154 |
public final static String CPULoad = PREFIX + "CPULoad"; |
|
155 |
public final static String ThreadCPULoad = PREFIX + "ThreadCPULoad"; |
|
156 |
public final static String SystemProcess = PREFIX + "SystemProcess"; |
|
157 |
public final static String ThreadContextSwitchRate = PREFIX + "ThreadContextSwitchRate"; |
|
158 |
public final static String InitialEnvironmentVariable = PREFIX + "InitialEnvironmentVariable"; |
|
159 |
public final static String NativeLibrary = PREFIX + "NativeLibrary"; |
|
160 |
public final static String PhysicalMemory = PREFIX + "PhysicalMemory"; |
|
50879 | 161 |
public final static String NetworkUtilization = PREFIX + "NetworkUtilization"; |
50113 | 162 |
|
163 |
// JDK |
|
164 |
public static final String FileForce = PREFIX + "FileForce"; |
|
165 |
public static final String FileRead = PREFIX + "FileRead"; |
|
166 |
public static final String FileWrite = PREFIX + "FileWrite"; |
|
167 |
public static final String SocketRead = PREFIX + "SocketRead"; |
|
168 |
public static final String SocketWrite = PREFIX + "SocketWrite"; |
|
169 |
public final static String ExceptionStatistics = PREFIX + "ExceptionStatistics"; |
|
170 |
public final static String JavaExceptionThrow = PREFIX + "JavaExceptionThrow"; |
|
171 |
public final static String JavaErrorThrow = PREFIX + "JavaErrorThrow"; |
|
172 |
public final static String ModuleRequire = PREFIX + "ModuleRequire"; |
|
173 |
public final static String ModuleExport = PREFIX + "ModuleExport"; |
|
52621
f7309a1491d9
8148188: Enhance the security libraries to record events of interest
coffeys
parents:
51877
diff
changeset
|
174 |
public final static String TLSHandshake = PREFIX + "TLSHandshake"; |
f7309a1491d9
8148188: Enhance the security libraries to record events of interest
coffeys
parents:
51877
diff
changeset
|
175 |
public final static String X509Certificate = PREFIX + "X509Certificate"; |
f7309a1491d9
8148188: Enhance the security libraries to record events of interest
coffeys
parents:
51877
diff
changeset
|
176 |
public final static String X509Validation = PREFIX + "X509Validation"; |
f7309a1491d9
8148188: Enhance the security libraries to record events of interest
coffeys
parents:
51877
diff
changeset
|
177 |
public final static String SecurityProperty = PREFIX + "SecurityPropertyModification"; |
50113 | 178 |
|
179 |
// Flight Recorder |
|
180 |
public final static String DumpReason = PREFIX + "DumpReason"; |
|
181 |
public final static String DataLoss = PREFIX + "DataLoss"; |
|
182 |
public final static String CPUTimeStampCounter = PREFIX + "CPUTimeStampCounter"; |
|
183 |
public final static String ActiveRecording = PREFIX + "ActiveRecording"; |
|
184 |
public final static String ActiveSetting = PREFIX + "ActiveSetting"; |
|
185 |
||
186 |
public static boolean isGcEvent(EventType et) { |
|
187 |
return et.getCategoryNames().contains(GC_CATEGORY); |
|
188 |
} |
|
189 |
||
190 |
} |