< prev index next >
src/share/vm/trace/traceTypes.xsl
Print this page
rev 8910 : full patch for jfr
*** 1,8 ****
<?xml version="1.0" encoding="utf-8"?>
<!--
! Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.
--- 1,8 ----
<?xml version="1.0" encoding="utf-8"?>
<!--
! Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.
*** 27,63 ****
<xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:call-template name="file-header"/>
! #ifndef TRACEFILES_TRACETYPES_HPP
! #define TRACEFILES_TRACETYPES_HPP
! #include "oops/symbol.hpp"
! #include "trace/traceDataTypes.hpp"
! #include "utilities/globalDefinitions.hpp"
! #include "utilities/ticks.hpp"
! enum JVMContentType {
! _not_a_content_type = (JVM_CONTENT_TYPES_START - 1),
!
! <xsl:for-each select="trace/types/content_types/content_type[@jvm_type]">
! <xsl:value-of select="concat(' CONTENT_TYPE_', @jvm_type, ',', $newline)"/>
</xsl:for-each>
! NUM_JVM_CONTENT_TYPES
};
! enum JVMEventRelations {
! JVM_REL_NOT_AVAILABLE = 0,
<xsl:for-each select="trace/relation_decls/relation_decl">
! <xsl:value-of select="concat(' JVM_REL_', @id, ',', $newline)"/>
</xsl:for-each>
! NUM_EVENT_RELATIONS
};
/**
* Create typedefs for the TRACE types:
* typedef s8 TYPE_LONG;
* typedef s4 TYPE_INTEGER;
* typedef const char * TYPE_STRING;
--- 27,81 ----
<xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:call-template name="file-header"/>
! #ifndef TRACEFILES_TRACETYPES_HPP
! #define TRACEFILES_TRACETYPES_HPP
! #include "trace/traceDataTypes.hpp"
! enum JfrConstantTypeId {
! CONSTANT_TYPE_NONE = 0,
! CONSTANT_TYPE_CLASS = 20,
! CONSTANT_TYPE_STRING = 21,
! CONSTANT_TYPE_THREAD = 22,
! CONSTANT_TYPE_STACKTRACE = 23,
! CONSTANT_TYPE_BYTES = 24,
! CONSTANT_TYPE_EPOCHMILLIS = 25,
! CONSTANT_TYPE_MILLIS = 26,
! CONSTANT_TYPE_NANOS = 27,
! CONSTANT_TYPE_TICKS = 28,
! CONSTANT_TYPE_ADDRESS = 29,
! CONSTANT_TYPE_PERCENTAGE = 30,
! CONSTANT_TYPE_DUMMY,
! CONSTANT_TYPE_DUMMY_1,
! <xsl:for-each select="trace/types/content_types/content_type[@jvm_type]">
! <xsl:value-of select="concat(' CONSTANT_TYPE_', @jvm_type, ',', $newline)"/>
</xsl:for-each>
! NUM_JFR_CONSTANT_TYPES,
! CONSTANT_TYPES_END = 255
};
! enum JfrEventRelations {
! JFR_REL_NOT_AVAILABLE = 0,
<xsl:for-each select="trace/relation_decls/relation_decl">
! <xsl:value-of select="concat(' JFR_REL_', @id, ',', $newline)"/>
</xsl:for-each>
! NUM_JFR_EVENT_RELATIONS
! };
!
! enum ReservedEvent {
! EVENT_METADATA,
! EVENT_CHECKPOINT,
! EVENT_BUFFERLOST,
! NUM_RESERVED_EVENTS = CONSTANT_TYPES_END
};
+
/**
* Create typedefs for the TRACE types:
* typedef s8 TYPE_LONG;
* typedef s4 TYPE_INTEGER;
* typedef const char * TYPE_STRING;
< prev index next >