author | xuelei |
Fri, 09 Nov 2012 01:15:04 -0800 | |
changeset 14422 | ecbc54a46e8b |
parent 12377 | ae6def2813e0 |
child 18025 | b7bcf7497f93 |
permissions | -rw-r--r-- |
11480
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
1 |
/* |
12377
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11624
diff
changeset
|
2 |
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
11480
1bf714e8adb4
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. |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
4 |
* |
1bf714e8adb4
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 |
1bf714e8adb4
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 |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
8 |
* |
1bf714e8adb4
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 |
1bf714e8adb4
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 |
1bf714e8adb4
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 |
1bf714e8adb4
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 |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
13 |
* accompanied this code). |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
14 |
* |
1bf714e8adb4
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 |
1bf714e8adb4
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, |
1bf714e8adb4
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. |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
18 |
* |
1bf714e8adb4
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 |
1bf714e8adb4
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 |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
21 |
* questions. |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
22 |
* |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
23 |
*/ |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
24 |
|
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
25 |
#ifndef SHARE_VM_TRACE_TRACE_MACRO_HPP |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
26 |
#define SHARE_VM_TRACE_TRACE_MACRO_HPP |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
27 |
|
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
28 |
#define EVENT_BEGIN(type, name) |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
29 |
#define EVENT_SET(name, field, value) |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
30 |
#define EVENT_COMMIT(name, ...) |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
31 |
#define EVENT_STARTED(name, time) |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
32 |
#define EVENT_ENDED(name, time) |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
33 |
#define EVENT_THREAD_EXIT(thread) |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
34 |
|
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
35 |
#define TRACE_ENABLED 0 |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
36 |
|
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
37 |
#define TRACE_INIT_ID(k) |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
38 |
#define TRACE_BUFFER void* |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
39 |
|
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
40 |
#define TRACE_START() true |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
41 |
#define TRACE_INITIALIZE() 0 |
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
42 |
|
11624
79398437f7eb
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
11480
diff
changeset
|
43 |
#define TRACE_SET_KLASS_TRACE_ID(x1, x2) do { } while (0) |
79398437f7eb
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
11480
diff
changeset
|
44 |
#define TRACE_DEFINE_KLASS_METHODS typedef int ___IGNORED_hs_trace_type1 |
79398437f7eb
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
11480
diff
changeset
|
45 |
#define TRACE_DEFINE_KLASS_TRACE_ID typedef int ___IGNORED_hs_trace_type2 |
12377
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11624
diff
changeset
|
46 |
#define TRACE_DEFINE_OFFSET typedef int ___IGNORED_hs_trace_type3 |
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11624
diff
changeset
|
47 |
#define TRACE_ID_OFFSET in_ByteSize(0); ShouldNotReachHere() |
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11624
diff
changeset
|
48 |
#define TRACE_TEMPLATES(template) |
ae6def2813e0
7160570: Intrinsification support for tracing framework
rbackman
parents:
11624
diff
changeset
|
49 |
#define TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias) |
11624
79398437f7eb
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
11480
diff
changeset
|
50 |
|
11480
1bf714e8adb4
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
51 |
#endif |