Mercurial > hg > truffle
annotate src/share/vm/trace/traceMacros.hpp @ 14265:3e2b76368121
Merge
author | morris |
---|---|
date | Fri, 17 Jan 2014 10:43:43 -0800 |
parents | 623d923529df |
children | 82d3e7b5277a |
rev | line source |
---|---|
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
1 /* |
10405 | 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) |
12205
623d923529df
8021353: Event based tracing is missing thread exit
mgronlun
parents:
10405
diff
changeset
|
29 #define EVENT_THREAD_DESTRUCT(thread) |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
30 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
31 #define TRACE_INIT_ID(k) |
10405 | 32 #define TRACE_DATA TraceThreadData |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
33 |
10405 | 34 #define TRACE_START() JNI_OK |
35 #define TRACE_INITIALIZE() JNI_OK | |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
36 |
4860
34e2e90e7182
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
4800
diff
changeset
|
37 #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
|
38 #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
|
39 #define TRACE_DEFINE_OFFSET typedef int ___IGNORED_hs_trace_type3 |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
40 #define TRACE_ID_OFFSET in_ByteSize(0); ShouldNotReachHere() |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
41 #define TRACE_TEMPLATES(template) |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
42 #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
|
43 |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
44 #endif |