4141N/A<?xml version="1.0" encoding="utf-8"?>
4141N/A<!--
4141N/A Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
4141N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4141N/A
4141N/A This code is free software; you can redistribute it and/or modify it
4141N/A under the terms of the GNU General Public License version 2 only, as
4141N/A published by the Free Software Foundation.
4141N/A
4141N/A This code is distributed in the hope that it will be useful, but WITHOUT
4141N/A ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4141N/A FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4141N/A version 2 for more details (a copy is included in the LICENSE file that
4141N/A accompanied this code).
4141N/A
4141N/A You should have received a copy of the GNU General Public License version
4141N/A 2 along with this work; if not, write to the Free Software Foundation,
4141N/A Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4141N/A
4141N/A Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4141N/A or visit www.oracle.com if you need additional information or have any
4141N/A questions.
4141N/A-->
4141N/A
4141N/A<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4141N/A<xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
4141N/A<xsl:import href="xsl_util.xsl"/>
4141N/A
4141N/A<xsl:template match="/">
4141N/A <xsl:call-template name="file-header"/>
4141N/A
4141N/A#ifndef TRACEFILES_JFREVENTIDS_HPP
4141N/A#define TRACEFILES_JFREVENTIDS_HPP
4141N/A
4141N/A#if INCLUDE_TRACE
4141N/A
4141N/A#include "trace/traceDataTypes.hpp"
4141N/A
4141N/A/**
4141N/A * Enum of the event types in the JVM
4141N/A */
4141N/Aenum TraceEventId {
4141N/A _traceeventbase = (NUM_RESERVED_EVENTS-1), // Make sure we start at right index.
4141N/A
4141N/A // Events -> enum entry
4141N/A<xsl:for-each select="trace/events/event">
4141N/A <xsl:value-of select="concat(' Trace', @id, 'Event,', $newline)"/>
4141N/A</xsl:for-each>
4141N/A MaxTraceEventId
4141N/A};
4141N/A
4141N/A/**
4141N/A * Struct types in the JVM
4141N/A */
4141N/Aenum TraceStructId {
4141N/A<xsl:for-each select="trace/types/content_types/*">
4141N/A <xsl:value-of select="concat(' Trace', @id, 'Struct,', $newline)"/>
4141N/A</xsl:for-each>
4141N/A<xsl:for-each select="trace/events/*">
4141N/A <xsl:value-of select="concat(' Trace', @id, 'Struct,', $newline)"/>
4141N/A</xsl:for-each>
4141N/A MaxTraceStructId
4141N/A};
4141N/A
4141N/Atypedef enum TraceEventId TraceEventId;
4141N/Atypedef enum TraceStructId TraceStructId;
4141N/A
4141N/A#endif
4141N/A#endif
4141N/A</xsl:template>
4141N/A
4141N/A</xsl:stylesheet>