src/share/vm/trace/tracetypes.xml

Wed, 27 Apr 2016 01:25:04 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:25:04 +0800
changeset 0
f90c822e73f8
child 6876
710a3c8b516e
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/
changeset: 6782:28b50d07f6f8
tag: jdk8u25-b17

aoqi@0 1 <?xml version="1.0" encoding="utf-8"?>
aoqi@0 2 <!--
aoqi@0 3 Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 5
aoqi@0 6 This code is free software; you can redistribute it and/or modify it
aoqi@0 7 under the terms of the GNU General Public License version 2 only, as
aoqi@0 8 published by the Free Software Foundation.
aoqi@0 9
aoqi@0 10 This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 13 version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 14 accompanied this code).
aoqi@0 15
aoqi@0 16 You should have received a copy of the GNU General Public License version
aoqi@0 17 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 18 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 19
aoqi@0 20 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 21 or visit www.oracle.com if you need additional information or have any
aoqi@0 22 questions.
aoqi@0 23 -->
aoqi@0 24
aoqi@0 25 <!DOCTYPE types SYSTEM "trace.dtd">
aoqi@0 26
aoqi@0 27 <!--
aoqi@0 28
aoqi@0 29 Content types (complex) should create constant pool data
aoqi@0 30 in the recording.
aoqi@0 31 Currently at least, there is _NO_ verification that whatever
aoqi@0 32 writer you have is actually writing correctly. So BE CAREFUL!
aoqi@0 33
aoqi@0 34 Declared with the 'content_type' tag.
aoqi@0 35
aoqi@0 36 <type> is the ID type, i.e the integer type that resolves this. Most often
aoqi@0 37 U4 or U8, but for example really small number constants, like GCTYPE uses U1.
aoqi@0 38
aoqi@0 39 <content-type> is where it gets interesting. 'builtin_type' means we're
aoqi@0 40 defining how we resolve one of the trace built-in types (Class, Thread etc),
aoqi@0 41 jvm_type means defining a new one for our own use.
aoqi@0 42
aoqi@0 43 Example: (GcMode)
aoqi@0 44
aoqi@0 45 <content_type id="GCMode" hr_name="GC mode" type="U1" jvm_type="GCMODE">
aoqi@0 46 <value type="UTF8" field="desc" description="Description"/>
aoqi@0 47 </content_type>
aoqi@0 48
aoqi@0 49 This creates a content type CONTENT_TYPE_GCMODE
aoqi@0 50 The field type referencing it is u1 (U1), and the constant pool struct has one field, the name.
aoqi@0 51
aoqi@0 52 Before we can use it we need also define a primary field data type:
aoqi@0 53
aoqi@0 54 <primary_type symbol="GCMODE" datatype="U1" contenttype="NONE"
aoqi@0 55 type="u8" sizeop="sizeof(u1)"/>
aoqi@0 56
aoqi@0 57 Now we can use the content + data type in declaring event fields.
aoqi@0 58 -->
aoqi@0 59
aoqi@0 60 <types>
aoqi@0 61 <content_types>
aoqi@0 62 <content_type id="Thread" hr_name="Thread"
aoqi@0 63 type="U4" builtin_type="OSTHREAD">
aoqi@0 64 <value type="UTF8" field="name" label="Thread name"/>
aoqi@0 65 </content_type>
aoqi@0 66
aoqi@0 67 <content_type id="VMThread" hr_name="VM Thread"
aoqi@0 68 type="U8" jvm_type="VMTHREAD">
aoqi@0 69 <value type="OSTHREAD" field="thread" label="VM Thread"/>
aoqi@0 70 </content_type>
aoqi@0 71
aoqi@0 72 <content_type id="JavaThread" hr_name="Java thread"
aoqi@0 73 type="U8" builtin_type="JAVALANGTHREAD">
aoqi@0 74 <value type="OSTHREAD" field="thread" label="OS Thread ID"/>
aoqi@0 75 <value type="BYTES64" field="allocInsideTla"
aoqi@0 76 label="Allocated bytes inside TLAs"/>
aoqi@0 77 <value type="BYTES64" field="allocOutsideTla"
aoqi@0 78 label="Allocated bytes outside TLAs"/>
aoqi@0 79 <value type="THREADGROUP" field="group" label="Java Thread Group"/>
aoqi@0 80 </content_type>
aoqi@0 81
aoqi@0 82 <content_type id="ThreadGroup" hr_name="Thread group"
aoqi@0 83 type="U4" jvm_type="THREADGROUP">
aoqi@0 84 <value type="THREADGROUP" field="parent" label="Parent"/>
aoqi@0 85 <value type="UTF8" field="name" label="Name"/>
aoqi@0 86 </content_type>
aoqi@0 87
aoqi@0 88 <content_type id="Class" hr_name="Java class"
aoqi@0 89 type="U8" builtin_type="CLASS">
aoqi@0 90 <value type="CLASS" field="loaderClass" label="ClassLoader"/>
aoqi@0 91 <value type="SYMBOL" field="name" label="Name"/>
aoqi@0 92 <value type="SHORT" field="modifiers" label="Access modifiers"/>
aoqi@0 93 </content_type>
aoqi@0 94
aoqi@0 95 <content_type id="Method" hr_name="Java method"
aoqi@0 96 type="U8" jvm_type="METHOD">
aoqi@0 97 <value type="CLASS" field="class" label="Class"/>
aoqi@0 98 <value type="SYMBOL" field="name" label="Name"/>
aoqi@0 99 <value type="SYMBOL" field="signature" label="Signature"/>
aoqi@0 100 <value type="SHORT" field="modifiers" label="Access modifiers"/>
aoqi@0 101 </content_type>
aoqi@0 102
aoqi@0 103 <content_type id="UTFConstant" hr_name="UTF constant"
aoqi@0 104 type="U8" jvm_type="SYMBOL">
aoqi@0 105 <value type="UTF8" field="utf8" label="UTF8 data"/>
aoqi@0 106 </content_type>
aoqi@0 107
aoqi@0 108 <content_type id="ThreadState" hr_name="Java Thread State"
aoqi@0 109 type="U2" jvm_type="THREADSTATE">
aoqi@0 110 <value type="UTF8" field="name" label="Name"/>
aoqi@0 111 </content_type>
aoqi@0 112
aoqi@0 113 <content_type id="GCName" hr_name="GC Name"
aoqi@0 114 type="U1" jvm_type="GCNAME">
aoqi@0 115 <value type="UTF8" field="name" label="name" />
aoqi@0 116 </content_type>
aoqi@0 117
aoqi@0 118 <content_type id="GCCause" hr_name="GC Cause"
aoqi@0 119 type="U2" jvm_type="GCCAUSE">
aoqi@0 120 <value type="UTF8" field="cause" label="cause" />
aoqi@0 121 </content_type>
aoqi@0 122
aoqi@0 123 <content_type id="GCWhen" hr_name="GC When"
aoqi@0 124 type="U1" jvm_type="GCWHEN">
aoqi@0 125 <value type="UTF8" field="when" label="when" />
aoqi@0 126 </content_type>
aoqi@0 127
aoqi@0 128 <content_type id="G1YCType" hr_name="G1 YC Type"
aoqi@0 129 type="U1" jvm_type="G1YCTYPE">
aoqi@0 130 <value type="UTF8" field="type" label="type" />
aoqi@0 131 </content_type>
aoqi@0 132
aoqi@0 133 <content_type id="GCThresholdUpdater" hr_name="GC Treshold Updater"
aoqi@0 134 type="U1" jvm_type="GCTHRESHOLDUPDATER">
aoqi@0 135 <value type="UTF8" field="updater" label="updater" />
aoqi@0 136 </content_type>
aoqi@0 137
aoqi@0 138 <content_type id="ReferenceType" hr_name="Reference Type"
aoqi@0 139 type="U1" jvm_type="REFERENCETYPE">
aoqi@0 140 <value type="UTF8" field="type" label="type" />
aoqi@0 141 </content_type>
aoqi@0 142
aoqi@0 143 <content_type id="MetadataType" hr_name="Metadata Type"
aoqi@0 144 type="U1" jvm_type="METADATATYPE">
aoqi@0 145 <value type="UTF8" field="type" label="type" />
aoqi@0 146 </content_type>
aoqi@0 147
aoqi@0 148 <content_type id="MetaspaceObjectType" hr_name="Metaspace Object Type"
aoqi@0 149 type="U1" jvm_type="METASPACEOBJTYPE">
aoqi@0 150 <value type="UTF8" field="type" label="type" />
aoqi@0 151 </content_type>
aoqi@0 152
aoqi@0 153 <content_type id="NARROW_OOP_MODE" hr_name="Narrow Oop Mode"
aoqi@0 154 type="U1" jvm_type="NARROWOOPMODE">
aoqi@0 155 <value type="UTF8" field="mode" label="mode" />
aoqi@0 156 </content_type>
aoqi@0 157
aoqi@0 158 <content_type id="VMOperationType" hr_name="VM Operation Type"
aoqi@0 159 type="U2" jvm_type="VMOPERATIONTYPE">
aoqi@0 160 <value type="UTF8" field="type" label="type" />
aoqi@0 161 </content_type>
aoqi@0 162
aoqi@0 163 <content_type id="CompilerPhaseType" hr_name="Compiler Phase Type"
aoqi@0 164 type="U1" jvm_type="COMPILERPHASETYPE">
aoqi@0 165 <value type="UTF8" field="phase" label="phase" />
aoqi@0 166 </content_type>
aoqi@0 167
aoqi@0 168 <content_type id="FlagValueOrigin" hr_name="Flag Value Origin"
aoqi@0 169 type="U1" jvm_type="FLAGVALUEORIGIN">
aoqi@0 170 <value type="UTF8" field="origin" label="origin" />
aoqi@0 171 </content_type>
aoqi@0 172
aoqi@0 173 </content_types>
aoqi@0 174
aoqi@0 175
aoqi@0 176 <primary_types>
aoqi@0 177 <!--
aoqi@0 178 - primary_type takes these attributes:
aoqi@0 179 - symbol INTEGER, LONG etc
aoqi@0 180 - datatype The trace datatype, see enum DataType
aoqi@0 181 - contenttype Either resolved content type or the semantic meaning
aoqi@0 182 - type The actual type as used in structures etc
aoqi@0 183 - sizeop A function/macro that can be applied on a single
aoqi@0 184 - struct value of type "type" and yield the factual byte
aoqi@0 185 - size we need to write. The % is replaced by the value
aoqi@0 186 -->
aoqi@0 187
aoqi@0 188 <!-- SIGNED 64bit -->
aoqi@0 189 <primary_type symbol="LONG" datatype="LONG" contenttype="NONE"
aoqi@0 190 type="s8" sizeop="sizeof(s8)"/>
aoqi@0 191
aoqi@0 192 <!-- UNSIGNED 64bit -->
aoqi@0 193 <primary_type symbol="ULONG" datatype="U8" contenttype="NONE"
aoqi@0 194 type="u8" sizeop="sizeof(u8)"/>
aoqi@0 195
aoqi@0 196 <!-- SIGNED 32bit -->
aoqi@0 197 <primary_type symbol="INTEGER" datatype="INT" contenttype="NONE"
aoqi@0 198 type="s4" sizeop="sizeof(s4)"/>
aoqi@0 199
aoqi@0 200 <!-- UNSIGNED 32bit -->
aoqi@0 201 <primary_type symbol="UINT" datatype="U4" contenttype="NONE"
aoqi@0 202 type="unsigned" sizeop="sizeof(unsigned)"/>
aoqi@0 203
aoqi@0 204 <!-- UNSIGNED 16bit -->
aoqi@0 205 <primary_type symbol="USHORT" datatype="U2" contenttype="NONE"
aoqi@0 206 type="u2" sizeop="sizeof(u2)"/>
aoqi@0 207
aoqi@0 208 <!-- SIGNED 16bit -->
aoqi@0 209 <primary_type symbol="SHORT" datatype="SHORT" contenttype="NONE"
aoqi@0 210 type="s2" sizeop="sizeof(s2)"/>
aoqi@0 211
aoqi@0 212 <!-- SIGNED 8bit -->
aoqi@0 213 <primary_type symbol="BYTE" datatype="BYTE" contenttype="NONE"
aoqi@0 214 type="s1" sizeop="sizeof(s1)"/>
aoqi@0 215
aoqi@0 216 <!-- UNSIGNED 8bit -->
aoqi@0 217 <primary_type symbol="UBYTE" datatype="U1" contenttype="NONE"
aoqi@0 218 type="u1" sizeop="sizeof(u1)"/>
aoqi@0 219
aoqi@0 220 <!-- float 32bit -->
aoqi@0 221 <primary_type symbol="FLOAT" datatype="FLOAT" contenttype="NONE"
aoqi@0 222 type="float" sizeop="sizeof(float)"/>
aoqi@0 223
aoqi@0 224 <!-- float 64bit -->
aoqi@0 225 <primary_type symbol="DOUBLE" datatype="DOUBLE" contenttype="NONE"
aoqi@0 226 type="double" sizeop="sizeof(double)"/>
aoqi@0 227
aoqi@0 228 <!-- boolean type (1-byte) -->
aoqi@0 229 <primary_type symbol="BOOLEAN" datatype="BOOLEAN" contenttype="NONE"
aoqi@0 230 type="bool" sizeop="1"/>
aoqi@0 231
aoqi@0 232 <!-- 32-bit unsigned integer, SEMANTIC value BYTES -->
aoqi@0 233 <primary_type symbol="BYTES" datatype="U4" contenttype="BYTES"
aoqi@0 234 type="u4" sizeop="sizeof(u4)"/>
aoqi@0 235
aoqi@0 236 <primary_type symbol="IOBYTES" datatype="U4" contenttype="BYTES"
aoqi@0 237 type="u4" sizeop="sizeof(u4)"/>
aoqi@0 238
aoqi@0 239 <!-- 64-bit unsigned integer, SEMANTIC value BYTES -->
aoqi@0 240 <primary_type symbol="BYTES64" datatype="U8" contenttype="BYTES"
aoqi@0 241 type="u8" sizeop="sizeof(u8)"/>
aoqi@0 242
aoqi@0 243 <!-- 64-bit unsigned integer, SEMANTIC value ABSOLUTE MILLISECONDS -->
aoqi@0 244 <primary_type symbol="EPOCHMILLIS" datatype="LONG" contenttype="EPOCHMILLIS"
aoqi@0 245 type="s8" sizeop="sizeof(s8)"/>
aoqi@0 246
aoqi@0 247 <!-- 64-bit unsigned integer, SEMANTIC value RELATIVE MILLISECONDS -->
aoqi@0 248 <primary_type symbol="MILLIS" datatype="LONG" contenttype="MILLIS"
aoqi@0 249 type="s8" sizeop="sizeof(s8)"/>
aoqi@0 250
aoqi@0 251 <!-- 64-bit unsigned integer, SEMANTIC value RELATIVE NANOSECONDS -->
aoqi@0 252 <primary_type symbol="NANOS" datatype="LONG" contenttype="NANOS"
aoqi@0 253 type="s8" sizeop="sizeof(s8)"/>
aoqi@0 254
aoqi@0 255 <!-- 64-bit signed integer, SEMANTIC value TICKS -->
aoqi@0 256 <primary_type symbol="TICKS" datatype="LONG" contenttype="TICKS"
aoqi@0 257 type="Ticks" sizeop="sizeof(s8)"/>
aoqi@0 258
aoqi@0 259 <!-- 64-bit signed integer, SEMANTIC value TICKS duration -->
aoqi@0 260 <primary_type symbol="TICKSPAN" datatype="LONG" contenttype="TICKS"
aoqi@0 261 type="Tickspan" sizeop="sizeof(s8)"/>
aoqi@0 262
aoqi@0 263 <!-- 64-bit unsigned integer, SEMANTIC value ADDRESS (mem loc) -->
aoqi@0 264 <primary_type symbol="ADDRESS" datatype="U8" contenttype="ADDRESS"
aoqi@0 265 type="u8" sizeop="sizeof(u8)"/>
aoqi@0 266
aoqi@0 267 <!-- 32-bit float, SEMANTIC value PERCENTAGE (0.0-1.0) -->
aoqi@0 268 <primary_type symbol="PERCENT" datatype="FLOAT" contenttype="PERCENTAGE"
aoqi@0 269 type="float" sizeop="sizeof(float)"/>
aoqi@0 270
aoqi@0 271 <!-- UTF-encoded string, max length 64k -->
aoqi@0 272 <primary_type symbol="UTF8" datatype="UTF8" contenttype="NONE"
aoqi@0 273 type="const char *" sizeop="sizeof_utf(%)"/>
aoqi@0 274
aoqi@0 275 <!-- UTF-16 encoded (Unicode) string, max length maxjuint -->
aoqi@0 276 <primary_type symbol="STRING" datatype="STRING" contenttype="NONE"
aoqi@0 277 type="TraceUnicodeString*" sizeop="sizeof_unicode(%)"/>
aoqi@0 278
aoqi@0 279 <!-- Symbol* constant. Note that this may currently ONLY be used by
aoqi@0 280 classes, methods fields. This restriction might be lifted. -->
aoqi@0 281 <primary_type symbol="SYMBOL" datatype="U8" contenttype="SYMBOL"
aoqi@0 282 type="Symbol *" sizeop="sizeof(u8)"/>
aoqi@0 283
aoqi@0 284 <!-- A Klass *. The actual class is marked as "used" and will
aoqi@0 285 eventually be written into the recording constant pool -->
aoqi@0 286 <primary_type symbol="CLASS" datatype="U8" contenttype="CLASS"
aoqi@0 287 type="Klass *" sizeop="sizeof(u8)"/>
aoqi@0 288
aoqi@0 289 <!-- A Method *. The method is marked as "used" and will eventually be
aoqi@0 290 written into the recording constant pool. -->
aoqi@0 291 <primary_type symbol="METHOD" datatype="U8" contenttype="METHOD"
aoqi@0 292 type="Method *" sizeop="sizeof(u8)"/>
aoqi@0 293
aoqi@0 294 <!-- The type for stacktraces in the recording. Shoudl not be used by
aoqi@0 295 events explicitly -->
aoqi@0 296 <primary_type symbol="STACKTRACE" datatype="U8" contenttype="STACKTRACE"
aoqi@0 297 type="u8" sizeop="sizeof(u8)"/>
aoqi@0 298
aoqi@0 299 <!-- OS Thread ID -->
aoqi@0 300 <primary_type symbol="OSTHREAD" datatype="U4" contenttype="OSTHREAD"
aoqi@0 301 type="u4" sizeop="sizeof(u4)"/>
aoqi@0 302
aoqi@0 303 <!-- VM Thread ID Note: changed from U2 to U8 for hotspot -->
aoqi@0 304 <primary_type symbol="VMTHREAD" datatype="U8" contenttype="VMTHREAD"
aoqi@0 305 type="u8" sizeop="sizeof(u8)"/>
aoqi@0 306
aoqi@0 307 <!-- Java Thread ID -->
aoqi@0 308 <primary_type symbol="JAVALANGTHREAD" datatype="LONG"
aoqi@0 309 contenttype="JAVALANGTHREAD" type="s8"
aoqi@0 310 sizeop="sizeof(s8)"/>
aoqi@0 311
aoqi@0 312 <!-- Threadgroup THIS TYPE MAY NOT BE USED IN NORMAL EVENTS (ATM). Only
aoqi@0 313 for thread constant pool // KK TODO: u8 should be ObjectP -->
aoqi@0 314 <primary_type symbol="THREADGROUP" datatype="U4" contenttype="THREADGROUP"
aoqi@0 315 type="u8"
aoqi@0 316 sizeop="sizeof(u4)"/>
aoqi@0 317
aoqi@0 318 <!-- FRAMETYPE enum -->
aoqi@0 319 <primary_type symbol="FRAMETYPE" datatype="U1" contenttype="FRAMETYPE"
aoqi@0 320 type="u1" sizeop="sizeof(u1)"/>
aoqi@0 321
aoqi@0 322 <!-- THREADSTATE enum -->
aoqi@0 323 <primary_type symbol="THREADSTATE" datatype="U2" contenttype="THREADSTATE"
aoqi@0 324 type="u2" sizeop="sizeof(u2)"/>
aoqi@0 325
aoqi@0 326 <!-- GCName -->
aoqi@0 327 <primary_type symbol="GCNAME" datatype="U1" contenttype="GCNAME"
aoqi@0 328 type="u1" sizeop="sizeof(u1)" />
aoqi@0 329
aoqi@0 330 <!-- GCCAUSE -->
aoqi@0 331 <primary_type symbol="GCCAUSE" datatype="U2" contenttype="GCCAUSE"
aoqi@0 332 type="u2" sizeop="sizeof(u2)" />
aoqi@0 333
aoqi@0 334 <!-- GCWHEN -->
aoqi@0 335 <primary_type symbol="GCWHEN" datatype="U1" contenttype="GCWHEN"
aoqi@0 336 type="u1" sizeop="sizeof(u1)" />
aoqi@0 337
aoqi@0 338 <!-- G1YCType -->
aoqi@0 339 <primary_type symbol="G1YCTYPE" datatype="U1" contenttype="G1YCTYPE"
aoqi@0 340 type="u1" sizeop="sizeof(u1)" />
aoqi@0 341
aoqi@0 342 <!-- GCTHRESHOLDUPDATER -->
aoqi@0 343 <primary_type symbol="GCTHRESHOLDUPDATER" datatype="U1" contenttype="GCTHRESHOLDUPDATER"
aoqi@0 344 type="u1" sizeop="sizeof(u1)" />
aoqi@0 345
aoqi@0 346 <!-- REFERENCETYPE -->
aoqi@0 347 <primary_type symbol="REFERENCETYPE" datatype="U1"
aoqi@0 348 contenttype="REFERENCETYPE" type="u1" sizeop="sizeof(u1)" />
aoqi@0 349
aoqi@0 350 <!-- METADATATYPE -->
aoqi@0 351 <primary_type symbol="METADATATYPE" datatype="U1"
aoqi@0 352 contenttype="METADATATYPE" type="u1" sizeop="sizeof(u1)" />
aoqi@0 353
aoqi@0 354 <!-- METADATAOBJTYPE -->
aoqi@0 355 <primary_type symbol="METASPACEOBJTYPE" datatype="U1"
aoqi@0 356 contenttype="METASPACEOBJTYPE" type="u1" sizeop="sizeof(u1)" />
aoqi@0 357
aoqi@0 358 <!-- NARROWOOPMODE -->
aoqi@0 359 <primary_type symbol="NARROWOOPMODE" datatype="U1"
aoqi@0 360 contenttype="NARROWOOPMODE" type="u1" sizeop="sizeof(u1)" />
aoqi@0 361
aoqi@0 362 <!-- COMPILERPHASETYPE -->
aoqi@0 363 <primary_type symbol="COMPILERPHASETYPE" datatype="U1"
aoqi@0 364 contenttype="COMPILERPHASETYPE" type="u1" sizeop="sizeof(u1)" />
aoqi@0 365
aoqi@0 366 <!-- VMOPERATIONTYPE -->
aoqi@0 367 <primary_type symbol="VMOPERATIONTYPE" datatype="U2" contenttype="VMOPERATIONTYPE"
aoqi@0 368 type="u2" sizeop="sizeof(u2)" />
aoqi@0 369
aoqi@0 370 <!-- FLAGVALUEORIGIN -->
aoqi@0 371 <primary_type symbol="FLAGVALUEORIGIN" datatype="U1"
aoqi@0 372 contenttype="FLAGVALUEORIGIN" type="u1" sizeop="sizeof(u1)" />
aoqi@0 373
aoqi@0 374 </primary_types>
aoqi@0 375 </types>

mercurial