8196341: Add JFR events for parallel phases of G1

0 #  Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
1 #  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2 #
3 #  This code is free software; you can redistribute it and/or modify it
4 #  under the terms of the GNU General Public License version 2 only, as
5 #  published by the Free Software Foundation.
6 #
7 #  This code is distributed in the hope that it will be useful, but WITHOUT
8 #  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9 #  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
10 #  version 2 for more details (a copy is included in the LICENSE file that
11 #  accompanied this code).
12 #
13 #  You should have received a copy of the GNU General Public License version
14 #  2 along with this work; if not, write to the Free Software Foundation,
15 #  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
16 #
17 #  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
18 #  or visit www.oracle.com if you need additional information or have any
19 #  questions.
20 #
21 
22 ###############################################################################
23 #
24 # Tiered testing definitions
25 #
26 
27 # When adding tests to tier1, make sure they end up in one of the tier1_partX groups
28 tier1 = \
29     :tier1_part1 \
30     :tier1_part2 \
31     :tier1_part3
32 
33 tier1_part1 = \
34     :jdk_lang
35 
36 tier1_part2 = \
37     :jdk_util \
38     -java/util/Arrays/TimSortStackSize2.java
39 
40 tier1_part3 = \
41     :jdk_math \
42     :jdk_svc_sanity \
43     java/nio/Buffer \
44     com/sun/crypto/provider/Cipher \
45     sun/nio/cs/ISO8859x.java \
46     tools/pack200
47 
48 # When adding tests to tier2, make sure they end up in one of the tier2_partX groups
49 tier2 = \
50     :tier2_part1 \
51     :tier2_part2 \
52     :tier2_part3
53 
54 # com/sun/crypto/provider/Cipher is in tier1 because of JDK-8132855
55 tier2_part1 = \
56     :jdk_security \
57     -com/sun/crypto/provider/Cipher
58 
59 # sun/nio/cs/ISO8859x.java and java/nio/Buffer are in tier1 because of JDK-8132854
60 tier2_part2 = \
61     :core_tools \
62     -tools/pack200 \
63     :jdk_io \
64     :jdk_nio \
65     -java/nio/Buffer \
66     -sun/nio/cs/ISO8859x.java \
67     :jdk_other \
68     :jdk_text \
69     :jdk_time \
70     java/util/Arrays/TimSortStackSize2.java
71 
72 
73 tier2_part3 = \
74     :jdk_net
75 
76 tier3 = \
77     :build \
78     :jdk_rmi \
79     :jdk_beans \
80     :jdk_imageio \
81     :jdk_sound \
82     :jdk_client_sanity
83 
84 ###############################################################################
85 #
86 # Other test definitions; generally smaller granularity than tiers
87 #
88 
89 # Build source checking
90 build = \
91     build
92 
93 # java.lang package and VM runtime support
94 jdk_lang = \
95     java/lang \
96     -java/lang/management \
97     -java/lang/instrument \
98     sun/invoke \
99     sun/misc \
100     sun/reflect \
101     jdk/internal/reflect \
102     jdk/lambda \
103     jdk/internal/loader \
104     jdk/internal/misc \
105     jdk/internal/ref \
106     jdk/internal/jimage \
107     jdk/internal/math \
108     jdk/modules \
109     vm
110 
111 # All of the java.util package
112 jdk_util = \
113     :jdk_util_other \
114     :jdk_collections \
115     :jdk_concurrent \
116     :jdk_stream
117 
118 # All util components not part of some other util category
119 jdk_util_other = \
120     java/util \
121     sun/util \
122     -:jdk_collections \
123     -:jdk_concurrent \
124     -:jdk_stream
125 
126 # All collections, core and concurrent
127 jdk_collections = \
128     :jdk_collections_core \
129     :jdk_concurrent
130 
131 # java.util.concurrent
132 # Includes concurrent collections plus other stuff
133 # Maintained by JSR-166 EG (Doug Lea et al)
134 jdk_concurrent = \
135     java/util/concurrent
136 
137 # Java Collections Framework core classes
138 jdk_collections_core = \
139     java/util/AbstractCollection \
140     java/util/AbstractList \
141     java/util/AbstractMap \
142     java/util/AbstractSequentialList \
143     java/util/ArrayList \
144     java/util/Arrays \
145     java/util/BitSet \
146     java/util/Collection \
147     java/util/Collections \
148     java/util/Comparator \
149     java/util/Deque \
150     java/util/EnumMap \
151     java/util/EnumSet \
152     java/util/HashMap \
153     java/util/HashSet \
154     java/util/Hashtable \
155     java/util/IdentityHashMap \
156     java/util/Iterator \
157     java/util/LinkedHashMap \
158     java/util/LinkedHashSet \
159     java/util/LinkedList \
160     java/util/List \
161     java/util/Map \
162     java/util/NavigableMap \
163     java/util/PriorityQueue \
164     java/util/TimSort \
165     java/util/TreeMap \
166     java/util/Vector \
167     java/util/WeakHashMap
168 
169 # java.util.stream (JSR-335)
170 jdk_stream = \
171     java/util/Optional \
172     java/util/function \
173     java/util/stream
174 
175 jdk_math = \
176     java/math
177 
178 jdk_io = \
179     java/io
180 
181 jdk_nio = \
182     java/nio \
183     sun/nio \
184     jdk/nio
185 
186 jdk_net = \
187     java/net \
188     com/sun/net/httpserver \
189     sun/net \
190     jdk/net
191 
192 jdk_time = \
193     java/time
194 
195 jdk_rmi = \
196     java/rmi \
197     sun/rmi
198 
199 jdk_security1 = \
200     java/security
201 
202 jdk_security2 = \
203     javax/crypto \
204     javax/xml/crypto \
205     com/oracle/security/ucrypto \
206     com/sun/crypto
207 
208 jdk_security3 = \
209     javax/security  \
210     -javax/security/auth/kerberos \
211     com/sun/jarsigner \
212     com/sun/security \
213     -com/sun/security/jgss \
214     com/sun/org/apache/xml/internal/security \
215     jdk/security \
216     sun/security \
217     -sun/security/krb5 \
218     -sun/security/jgss \
219     javax/net \
220     com/sun/net/ssl \
221     lib/security
222 
223 jdk_security4 = \
224     com/sun/security/jgss \
225     javax/security/auth/kerberos \
226     sun/security/krb5 \
227     sun/security/jgss
228 
229 jdk_security = \
230     :jdk_security1 \
231     :jdk_security2 \
232     :jdk_security3 \
233     :jdk_security4
234 
235 jdk_security_infra = \
236     security/infra/java/security/cert/CertPathValidator/certification
237 
238 jdk_text = \
239     java/text \
240     sun/text
241 
242 jdk_management = \
243     java/lang/management \
244     com/sun/management \
245     sun/management \
246     jdk/internal/agent
247 
248 jdk_instrument = \
249     java/lang/instrument
250 
251 jdk_jmx = \
252     javax/management \
253     com/sun/jmx
254 
255 jdk_jdi = \
256     com/sun/jdi
257 
258 jdk_native_sanity = \
259     native_sanity
260 
261 # java launcher specific tests, Note: do not include this group into any groups
262 # that potentially could be included into a jprt test rule, as the complementary
263 # closed  group includes awt SplashScreen and these tests may not run
264 # satisfactorily on all platforms and  profiles thus this group must always
265 # be a stand-alone group
266 jdk_launcher = \
267     tools/launcher \
268     sun/tools
269 
270 #
271 # Tool (and tool API) tests are split into core and svc groups
272 #
273 core_tools = \
274     tools \
275     jdk/internal/jrtfs \
276     sun/tools/java \
277     sun/tools/jrunscript
278 
279 svc_tools = \
280     com/sun/tools/attach \
281     sun/tools \
282     -sun/tools/java \
283     -sun/tools/jrunscript \
284     sun/jvmstat
285 
286 jdk_tools = \
287     :core_tools \
288     :svc_tools
289 
290 jdk_jfr = \
291     jdk/jfr
292 
293 #
294 # Catch-all for other areas with a small number of tests
295 #
296 jdk_other = \
297     java/sql \
298     javax/sql \
299     javax/transaction \
300     javax/rmi \
301     javax/naming \
302     javax/script \
303     javax/smartcardio \
304     javax/xml \
305     -javax/xml/crypto \
306     jdk/internal/jline \
307     com/sun/jndi \
308     lib/testlibrary
309 
310 #
311 # SCTP is its own group as it is highly sensitive to kernel/network config
312 #
313 jdk_sctp = \
314     com/sun/nio/sctp
315 
316 
317 #
318 # core group to run all core area tests
319 #
320 jdk_core = \
321     :jdk_lang \
322     :jdk_util \
323     :jdk_math \
324     :jdk_io \
325     :jdk_nio \
326     :jdk_net \
327     :jdk_rmi \
328     :jdk_time \
329     :jdk_security \
330     :jdk_text \
331     :core_tools \
332     :jdk_other
333 
334 #
335 # svc group to run all serviceability area tests
336 #
337 jdk_svc = \
338     :jdk_management \
339     :jdk_instrument \
340     :jdk_jmx \
341     :jdk_jdi \
342     :jdk_jfr \
343     :svc_tools
344 
345 #############################
346 
347 #
348 # Client area groups
349 #
350 
351 jdk_awt = \
352     java/awt \
353     com/sun/awt \
354     com/apple/eawt \
355     com/apple/laf \
356     sun/awt
357 
358 jdk_2d = \
359     javax/print \
360     sun/java2d
361 
362 jdk_beans = \
363     java/beans
364 
365 jdk_swing = \
366     javax/accessibility \
367     javax/swing \
368     com/sun/java/swing
369 
370 jdk_sound = \
371     javax/sound
372 
373 jdk_imageio = \
374     javax/imageio
375 
376 jfc_demo = \
377      demo/jfc
378 
379 jdk_desktop = \
380     :jdk_awt \
381     :jdk_2d \
382     :jdk_beans \
383     :jdk_swing \
384     :jdk_sound \
385     :jdk_imageio \
386     :jfc_demo
387 
388 # SwingSet3 tests.
389 jdk_client_sanity = \
390     sanity/client/SwingSet
391 
392 # This test group represents a subset of tests which are expected to
393 # exercise most of the most commonly used code in Swing applications.
394 # New failures in this area may be a problem.
395 jdk_swing_core = \
396      :jdk_client_sanity \
397      javax/swing
398 
399 # The most commonly used printing APIs are included here along with swing core.
400 jdk_desktop_core = \
401     :jdk_swing_core \
402     java/awt/print
403 
404 ###############################################################################
405 #
406 # Serviceability sanity groups
407 #
408 # These groups specify a subset of Serviceability tests that are supposed to
409 # guard against breakage of Serviceability features by other component teams.
410 # They are added to the "hotspot" testset in JPRT so that they will run on all
411 # full-forest pushes through JPRT.
412 #
413 
414 jdk_svc_sanity = \
415     :jdk_management_sanity \
416     :jdk_instrument_sanity \
417     :jdk_jmx_sanity \
418     :jdk_jdi_sanity \
419     :jdk_jfr_sanity \
420     :svc_tools_sanity
421 
422 jdk_management_sanity =
423 
424 jdk_instrument_sanity =
425 
426 jdk_jmx_sanity =
427 
428 jdk_jdi_sanity = \
429     com/sun/jdi/AcceptTimeout.java \
430     com/sun/jdi/AccessSpecifierTest.java \
431     com/sun/jdi/AfterThreadDeathTest.java \
432     com/sun/jdi/ArrayRangeTest.java \
433     com/sun/jdi/ConstantPoolInfo.java \
434     com/sun/jdi/CountFilterTest.java \
435     com/sun/jdi/EarlyReturnNegativeTest.java \
436     com/sun/jdi/EarlyReturnTest.java \
437     com/sun/jdi/FieldWatchpoints.java \
438     com/sun/jdi/FramesTest.java \
439     com/sun/jdi/InstanceFilter.java \
440     com/sun/jdi/InterfaceMethodsTest.java \
441     com/sun/jdi/InvokeTest.java \
442     com/sun/jdi/LocalVariableEqual.java \
443     com/sun/jdi/LocationTest.java \
444     com/sun/jdi/ModificationWatchpoints.java \
445     com/sun/jdi/MonitorEventTest.java \
446     com/sun/jdi/MonitorFrameInfo.java \
447     com/sun/jdi/NullThreadGroupNameTest.java \
448     com/sun/jdi/PopAndStepTest.java \
449     com/sun/jdi/PopAsynchronousTest.java \
450     com/sun/jdi/ProcessAttachTest.java \
451     com/sun/jdi/ReferrersTest.java \
452     com/sun/jdi/RequestReflectionTest.java \
453     com/sun/jdi/ResumeOneThreadTest.java \
454     com/sun/jdi/RunToExit.java \
455     com/sun/jdi/SourceNameFilterTest.java \
456     com/sun/jdi/VarargsTest.java \
457     com/sun/jdi/Vars.java \
458     com/sun/jdi/redefineMethod/RedefineTest.java \
459     com/sun/jdi/sde/MangleTest.java \
460     com/sun/jdi/sde/TemperatureTableTest.java
461 
462 jdk_jfr_sanity = \
463     jdk/jfr/api/recording/event/TestLoadEventAfterStart.java \
464     jdk/jfr/api/recording/state/TestState.java \
465     jdk/jfr/event/os/TestCPULoad.java \
466     jdk/jfr/event/compiler/TestAllocInNewTLAB.java \
467     jdk/jfr/jcmd/TestJcmdStartStopDefault.java \
468     jdk/jfr/event/io/TestFileStreamEvents.java \
469     jdk/jfr/event/compiler/TestCompilerCompile.java \
470     jdk/jfr/event/gc/collection/TestGCGarbageCollectionEvent.java \
471     jdk/jfr/event/runtime/TestClassLoadEvent.java \
472     jdk/jfr/event/runtime/TestJavaBlockedEvent.java \
473     jdk/jfr/event/gc/collection/TestGCWithFasttime.java \
474     jdk/jfr/event/gc/configuration/TestGCConfigurationEvent.java
475 
476 svc_tools_sanity =
477 
478 #############################
479 #
480 # Stable test groups
481 #
482 
483 jdk_stable = \
484     :jdk_core \
485     :jdk_svc \
486     :jdk_beans \
487     :jdk_imageio \
488     :jdk_sound \
489     :jdk_sctp \
490     javax/accessibility \
491     com/sun/java/swing \
492     com/sun/awt
493 
494 needs_g1gc = \
495   jdk/jfr/event/gc/refstat/TestRefStatEventWithG1ConcurrentMark.java \
496   jdk/jfr/event/gc/refstat/TestRefStatEventWithG1FullCollection.java \
497   jdk/jfr/event/gc/refstat/TestRefStatEventWithG1New.java \
498   jdk/jfr/event/gc/detailed/TestEvacuationFailedEvent.java \
499   jdk/jfr/event/gc/detailed/TestEvacuationInfoEvent.java \
500   jdk/jfr/event/gc/detailed/TestG1ConcurrentModeFailureEvent.java \
501   jdk/jfr/event/gc/collection/TestGCCauseWithG1ConcurrentMark.java \
502   jdk/jfr/event/gc/collection/TestGCCauseWithG1FullCollection.java \
503   jdk/jfr/event/gc/collection/TestYoungGarbageCollectionEventWithG1New.java \
504   jdk/jfr/event/gc/collection/TestGCEventMixedWithG1FullCollection.java \
505   jdk/jfr/event/gc/collection/TestGCEventMixedWithG1ConcurrentMark.java \
506   jdk/jfr/event/gc/collection/TestG1ParallelPhases.java \
507   jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1FullCollection.java \
508   jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1ConcurrentMark.java \
509   jdk/jfr/event/gc/heapsummary/TestHeapSummaryEventG1.java
--- EOF ---