annotate src/share/vm/trace/traceMacros.hpp @ 10405:f2110083203d

8005849: JEP 167: Event-Based JVM Tracing Reviewed-by: acorn, coleenp, sla Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author sla
date Mon, 10 Jun 2013 11:30:51 +0200
parents 0105f367a14c
children 623d923529df
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4800
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
1 /*
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 6006
diff changeset
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
4800
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
4 *
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
7 * published by the Free Software Foundation.
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
8 *
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
13 * accompanied this code).
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
14 *
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
18 *
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
21 * questions.
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
22 *
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
23 */
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
24
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
25 #ifndef SHARE_VM_TRACE_TRACE_MACRO_HPP
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
26 #define SHARE_VM_TRACE_TRACE_MACRO_HPP
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
27
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
28 #define EVENT_THREAD_EXIT(thread)
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
29
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
30 #define TRACE_INIT_ID(k)
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 6006
diff changeset
31 #define TRACE_DATA TraceThreadData
4800
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
32
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 6006
diff changeset
33 #define TRACE_START() JNI_OK
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 6006
diff changeset
34 #define TRACE_INITIALIZE() JNI_OK
4800
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
35
4860
34e2e90e7182 7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents: 4800
diff changeset
36 #define TRACE_DEFINE_KLASS_METHODS typedef int ___IGNORED_hs_trace_type1
34e2e90e7182 7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents: 4800
diff changeset
37 #define TRACE_DEFINE_KLASS_TRACE_ID typedef int ___IGNORED_hs_trace_type2
6006
0105f367a14c 7160570: Intrinsification support for tracing framework
rbackman
parents: 4860
diff changeset
38 #define TRACE_DEFINE_OFFSET typedef int ___IGNORED_hs_trace_type3
0105f367a14c 7160570: Intrinsification support for tracing framework
rbackman
parents: 4860
diff changeset
39 #define TRACE_ID_OFFSET in_ByteSize(0); ShouldNotReachHere()
0105f367a14c 7160570: Intrinsification support for tracing framework
rbackman
parents: 4860
diff changeset
40 #define TRACE_TEMPLATES(template)
0105f367a14c 7160570: Intrinsification support for tracing framework
rbackman
parents: 4860
diff changeset
41 #define TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias)
4860
34e2e90e7182 7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents: 4800
diff changeset
42
4800
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff changeset
43 #endif