comparison src/share/vm/trace/tracetypes.xml @ 11156:060ae9b7ffea

8020547: Event based tracing needs a UNICODE string type Reviewed-by: egahlin, rbackman, dcubed, brutisso, acorn
author mgronlun
date Fri, 19 Jul 2013 17:56:27 +0200
parents f2110083203d
children 86e6d691f2e1
comparison
equal deleted inserted replaced
11155:383a5e21cc2d 11156:060ae9b7ffea
53 53
54 <primary_type symbol="GCMODE" datatype="U1" contenttype="NONE" 54 <primary_type symbol="GCMODE" datatype="U1" contenttype="NONE"
55 type="u8" sizeop="sizeof(u1)"/> 55 type="u8" sizeop="sizeof(u1)"/>
56 56
57 Now we can use the content + data type in declaring event fields. 57 Now we can use the content + data type in declaring event fields.
58 Remember however, that for us to be able to resolve the value later we must also add
59 creating the constant pool data in VM_JFRCheckpoint::write_checkpoint
60
61 ...
62 //CGMODE
63 w->be_uint(CONTENT_TYPE_GCMODE);
64 w->be_uint(MM_GC_MODE_UNINITIALIZED);
65 for (i = 0; i < MM_GC_MODE_UNINITIALIZED; i++) {
66 w->uchar(i);
67 w->write_utf8(gcModeGetName(i));
68 }
69
70 --> 58 -->
71 59
72 <types> 60 <types>
73 <content_types> 61 <content_types>
74 <content_type id="Thread" hr_name="Thread" 62 <content_type id="Thread" hr_name="Thread"
79 <content_type id="VMThread" hr_name="VM Thread" 67 <content_type id="VMThread" hr_name="VM Thread"
80 type="U8" jvm_type="VMTHREAD"> 68 type="U8" jvm_type="VMTHREAD">
81 <value type="OSTHREAD" field="thread" label="VM Thread"/> 69 <value type="OSTHREAD" field="thread" label="VM Thread"/>
82 </content_type> 70 </content_type>
83 71
84 <!-- The first argument ("JavaThread") is misleading, it's really a
85 java.lang.Thread id (long), but Mission Control depends on the name
86 being "JavaThread" so it shouldn't be changed.
87 -->
88 <content_type id="JavaThread" hr_name="Java thread" 72 <content_type id="JavaThread" hr_name="Java thread"
89 type="U8" builtin_type="JAVALANGTHREAD"> 73 type="U8" builtin_type="JAVALANGTHREAD">
90 <value type="OSTHREAD" field="thread" label="OS Thread ID"/> 74 <value type="OSTHREAD" field="thread" label="OS Thread ID"/>
91 <value type="BYTES64" field="allocInsideTla" 75 <value type="BYTES64" field="allocInsideTla"
92 label="Allocated bytes inside TLAs"/> 76 label="Allocated bytes inside TLAs"/>
283 267
284 <!-- UTF-encoded string, max length 64k --> 268 <!-- UTF-encoded string, max length 64k -->
285 <primary_type symbol="UTF8" datatype="UTF8" contenttype="NONE" 269 <primary_type symbol="UTF8" datatype="UTF8" contenttype="NONE"
286 type="const char *" sizeop="sizeof_utf(%)"/> 270 type="const char *" sizeop="sizeof_utf(%)"/>
287 271
272 <!-- UTF-16 encoded (Unicode) string, max length maxjuint -->
273 <primary_type symbol="STRING" datatype="STRING" contenttype="NONE"
274 type="TraceUnicodeString*" sizeop="sizeof_unicode(%)"/>
275
288 <!-- Symbol* constant. Note that this may currently ONLY be used by 276 <!-- Symbol* constant. Note that this may currently ONLY be used by
289 classes, methods fields. This restriction might be lifted. --> 277 classes, methods fields. This restriction might be lifted. -->
290 <primary_type symbol="SYMBOL" datatype="U8" contenttype="SYMBOL" 278 <primary_type symbol="SYMBOL" datatype="U8" contenttype="SYMBOL"
291 type="Symbol *" sizeop="sizeof(u8)"/> 279 type="Symbol *" sizeop="sizeof(u8)"/>
292 280