< prev index next >
hotspot/src/share/vm/trace/traceTypes.xsl
Print this page
rev 6909 : 8065361: Fixup headers and definitions for INCLUDE_TRACE
Reviewed-by: sla, stefank
*** 27,45 ****
<xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:call-template name="file-header"/>
! #ifndef TRACEFILES_JFRTYPES_HPP
! #define TRACEFILES_JFRTYPES_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)"/>
--- 27,44 ----
<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)"/>
*** 56,74 ****
</xsl:for-each>
NUM_EVENT_RELATIONS
};
/**
! * Create typedefs for the JRA types:
* typedef s8 TYPE_LONG;
* typedef s4 TYPE_INTEGER;
* typedef const char * TYPE_STRING;
* ...
*/
<xsl:for-each select="trace/types/primary_types/primary_type">
typedef <xsl:value-of select="@type"/> TYPE_<xsl:value-of select="@symbol"/>;
</xsl:for-each>
! #endif // JFRFILES_JFRTYPES_HPP
</xsl:template>
</xsl:stylesheet>
--- 55,73 ----
</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;
* ...
*/
<xsl:for-each select="trace/types/primary_types/primary_type">
typedef <xsl:value-of select="@type"/> TYPE_<xsl:value-of select="@symbol"/>;
</xsl:for-each>
! #endif // TRACEFILES_TRACETYPES_HPP
</xsl:template>
</xsl:stylesheet>
< prev index next >