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