Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/jfr/support/jfrEventClass.cpp
38921 views
/*1* Copyright (c) 2012, 2018, 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#include "precompiled.hpp"25#include "jfr/recorder/checkpoint/types/traceid/jfrTraceId.inline.hpp"26#include "jfr/support/jfrEventClass.hpp"2728bool JdkJfrEvent::is(const Klass* k) {29return JfrTraceId::is_jdk_jfr_event(k);30}3132bool JdkJfrEvent::is(const jclass jc) {33return JfrTraceId::is_jdk_jfr_event(jc);34}3536void JdkJfrEvent::tag_as(const Klass* k) {37JfrTraceId::tag_as_jdk_jfr_event(k);38}3940bool JdkJfrEvent::is_subklass(const Klass* k) {41return JfrTraceId::is_jdk_jfr_event_sub(k);42}4344bool JdkJfrEvent::is_subklass(const jclass jc) {45return JfrTraceId::is_jdk_jfr_event_sub(jc);46}4748void JdkJfrEvent::tag_as_subklass(const Klass* k) {49JfrTraceId::tag_as_jdk_jfr_event_sub(k);50}5152void JdkJfrEvent::tag_as_subklass(const jclass jc) {53JfrTraceId::tag_as_jdk_jfr_event_sub(jc);54}5556bool JdkJfrEvent::is_a(const Klass* k) {57return JfrTraceId::in_jdk_jfr_event_hierarchy(k);58}5960bool JdkJfrEvent::is_a(const jclass jc) {61return JfrTraceId::in_jdk_jfr_event_hierarchy(jc);62}6364bool JdkJfrEvent::is_host(const Klass* k) {65return JfrTraceId::is_event_host(k);66}6768bool JdkJfrEvent::is_host(const jclass jc) {69return JfrTraceId::is_event_host(jc);70}7172void JdkJfrEvent::tag_as_host(const Klass* k) {73JfrTraceId::tag_as_event_host(k);74}7576void JdkJfrEvent::tag_as_host(const jclass jc) {77JfrTraceId::tag_as_event_host(jc);78}7980bool JdkJfrEvent::is_visible(const Klass* k) {81return JfrTraceId::in_visible_set(k);82}8384bool JdkJfrEvent::is_visible(const jclass jc) {85return JfrTraceId::in_visible_set(jc);86}878889