Mon, 12 Aug 2019 18:30:40 +0300
8223147: JFR Backport
8199712: Flight Recorder
8203346: JFR: Inconsistent signature of jfr_add_string_constant
8195817: JFR.stop should require name of recording
8195818: JFR.start should increase autogenerated name by one
8195819: Remove recording=x from jcmd JFR.check output
8203921: JFR thread sampling is missing fixes from JDK-8194552
8203929: Limit amount of data for JFR.dump
8203664: JFR start failure after AppCDS archive created with JFR StartFlightRecording
8003209: JFR events for network utilization
8207392: [PPC64] Implement JFR profiling
8202835: jfr/event/os/TestSystemProcess.java fails on missing events
Summary: Backport JFR from JDK11. Initial integration
Reviewed-by: neugens
1 <?xml version="1.0"?>
2 <!--
3 Copyright (c) 2002, 2010, 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.
24 -->
26 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
28 <xsl:import href="jvmtiLib.xsl"/>
30 <xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
32 <xsl:template match="/">
33 <xsl:apply-templates select="specification"/>
34 </xsl:template>
36 <xsl:template match="specification">
37 <xsl:call-template name="includeHeader"/>
38 <xsl:text>
41 #ifndef GENERATED_JVMTIFILES_JVMTIENV_HPP
42 #define GENERATED_JVMTIFILES_JVMTIENV_HPP
44 #include "prims/jvmtiEnvBase.hpp"
45 #include "prims/jvmtiImpl.hpp"
47 enum {
48 JVMTI_INTERNAL_CAPABILITY_COUNT = </xsl:text>
49 <xsl:value-of select="count(//capabilityfield)"/>
50 <xsl:text>
51 };
54 class JvmtiEnv : public JvmtiEnvBase {
56 private:
58 JvmtiEnv(jint version);
59 ~JvmtiEnv();
61 public:
63 static JvmtiEnv* create_a_jvmti(jint version);
65 </xsl:text>
66 <xsl:apply-templates select="functionsection"/>
67 <xsl:text>
68 };
70 #endif // GENERATED_JVMTIFILES_JVMTIENV_HPP
71 </xsl:text>
72 </xsl:template>
74 <xsl:template match="functionsection">
75 <xsl:apply-templates select="category"/>
76 </xsl:template>
78 <xsl:template match="category">
79 <xsl:text>
80 // </xsl:text><xsl:value-of select="@label"/><xsl:text> functions
81 </xsl:text>
82 <xsl:apply-templates select="function[not(contains(@impl,'unimpl'))]"/>
83 </xsl:template>
85 <xsl:template match="function">
86 <xsl:text> jvmtiError </xsl:text>
87 <xsl:if test="count(@hide)=1">
88 <xsl:value-of select="@hide"/>
89 </xsl:if>
90 <xsl:value-of select="@id"/>
91 <xsl:text>(</xsl:text>
92 <xsl:apply-templates select="parameters" mode="HotSpotSig"/>
93 <xsl:text>);
94 </xsl:text>
95 </xsl:template>
97 </xsl:stylesheet>