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_JFRTYPES_HPP
4141N/A#define TRACEFILES_JFRTYPES_HPP
4141N/A
4141N/A#include "trace/traceDataTypes.hpp"
4141N/A#include "utilities/globalDefinitions.hpp"
4141N/A#include "oops/symbol.hpp"
4141N/A#include "oops/klassOop.hpp"
4141N/A#include "oops/methodOop.hpp"
4141N/A
4141N/Aenum JVMContentType {
4141N/A _not_a_content_type = (JVM_CONTENT_TYPES_START - 1),
4141N/A
4141N/A<xsl:for-each select="trace/types/content_types/content_type[@jvm_type]">
4141N/A <xsl:value-of select="concat(' CONTENT_TYPE_', @jvm_type, ',', $newline)"/>
4141N/A</xsl:for-each>
4141N/A NUM_JVM_CONTENT_TYPES
4141N/A};
4141N/A
4141N/A
4141N/Aenum JVMEventRelations {
4141N/A JVM_REL_NOT_AVAILABLE = 0,
4141N/A
4141N/A<xsl:for-each select="trace/relation_decls/relation_decl">
4141N/A <xsl:value-of select="concat(' JVM_REL_', @id, ',', $newline)"/>
4141N/A</xsl:for-each>
4141N/A NUM_EVENT_RELATIONS
4141N/A};
4141N/A
4141N/A/**
4141N/A * Create typedefs for the JRA types:
4141N/A * typedef s8 TYPE_LONG;
4141N/A * typedef s4 TYPE_INTEGER;
4141N/A * typedef const char * TYPE_STRING;
4141N/A * ...
4141N/A */
4141N/A<xsl:for-each select="trace/types/primary_types/primary_type">
4141N/Atypedef <xsl:value-of select="@type"/> TYPE_<xsl:value-of select="@symbol"/>;
4141N/A</xsl:for-each>
4141N/A
4141N/A#endif // JFRFILES_JFRTYPES_HPP
4141N/A</xsl:template>
4141N/A
4141N/A</xsl:stylesheet>