src/share/vm/trace/traceEventIds.xsl

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

     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.
     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.
    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).
    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.
    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 -->
    25 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    26 <xsl:import href="xsl_util.xsl"/>
    27 <xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
    29 <xsl:template match="/">
    30   <xsl:call-template name="file-header"/>
    32 #ifndef TRACEFILES_JFREVENTIDS_HPP
    33 #define TRACEFILES_JFREVENTIDS_HPP
    35 #include "utilities/macros.hpp"
    37 #if INCLUDE_TRACE
    39 #include "trace/traceDataTypes.hpp"
    41 /**
    42  * Enum of the event types in the JVM
    43  */
    44 enum TraceEventId {
    45   _traceeventbase = (NUM_RESERVED_EVENTS-1), // Make sure we start at right index.
    47   // Events -> enum entry
    48 <xsl:for-each select="trace/events/event">
    49   <xsl:value-of select="concat('  Trace', @id, 'Event,', $newline)"/>
    50 </xsl:for-each>
    51   MaxTraceEventId
    52 };
    54 /**
    55  * Struct types in the JVM
    56  */
    57 enum TraceStructId {
    58 <xsl:for-each select="trace/types/content_types/*">
    59   <xsl:value-of select="concat('  Trace', @id, 'Struct,', $newline)"/>
    60 </xsl:for-each>
    61 <xsl:for-each select="trace/events/*">
    62   <xsl:value-of select="concat('  Trace', @id, 'Struct,', $newline)"/>
    63 </xsl:for-each>
    64   MaxTraceStructId
    65 };
    67 typedef enum TraceEventId  TraceEventId;
    68 typedef enum TraceStructId TraceStructId;
    70 #endif
    71 #endif
    72 </xsl:template>
    74 </xsl:stylesheet>

mercurial