Path: blob/master/src/hotspot/share/jfr/support/jfrIntrinsics.hpp
41149 views
/*1* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef SHARE_JFR_SUPPORT_JFRINTRINSICS_HPP25#define SHARE_JFR_SUPPORT_JFRINTRINSICS_HPP2627#include "utilities/macros.hpp"2829#if INCLUDE_JFR30#include "jfr/support/jfrKlassExtension.hpp"31#include "jfr/support/jfrThreadExtension.hpp"32#include "jfr/utilities/jfrTime.hpp"33#include "jfr/recorder/checkpoint/types/traceid/jfrTraceIdMacros.hpp"3435#define JFR_TEMPLATES(template) \36template(jdk_jfr_internal_JVM, "jdk/jfr/internal/JVM") \37template(jdk_jfr_internal_handlers_EventHandler_signature, "Ljdk/jfr/internal/handlers/EventHandler;") \38template(eventHandler_name, "eventHandler") \3940#define JFR_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias) \41do_intrinsic(_counterTime, jdk_jfr_internal_JVM, counterTime_name, void_long_signature, F_SN) \42do_name( counterTime_name, "counterTime") \43do_intrinsic(_getClassId, jdk_jfr_internal_JVM, getClassId_name, class_long_signature, F_SN) \44do_name( getClassId_name, "getClassId") \45do_intrinsic(_getEventWriter, jdk_jfr_internal_JVM, getEventWriter_name, void_object_signature, F_SN) \46do_name( getEventWriter_name, "getEventWriter") \4748#define JFR_HAVE_INTRINSICS49#define JFR_TIME_FUNCTION JfrTime::time_function()5051#else // !INCLUDE_JFR5253#define JFR_TEMPLATES(template)54#define JFR_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias)5556#endif // INCLUDE_JFR57#endif // SHARE_JFR_SUPPORT_JFRINTRINSICS_HPP585960