comparison 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
comparison
equal deleted inserted replaced
10404:d0add7016434 10405:f2110083203d
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
23 */ 23 */
24 24
25 #ifndef SHARE_VM_TRACE_TRACE_MACRO_HPP 25 #ifndef SHARE_VM_TRACE_TRACE_MACRO_HPP
26 #define SHARE_VM_TRACE_TRACE_MACRO_HPP 26 #define SHARE_VM_TRACE_TRACE_MACRO_HPP
27 27
28 #define EVENT_BEGIN(type, name)
29 #define EVENT_SET(name, field, value)
30 #define EVENT_COMMIT(name, ...)
31 #define EVENT_STARTED(name, time)
32 #define EVENT_ENDED(name, time)
33 #define EVENT_THREAD_EXIT(thread) 28 #define EVENT_THREAD_EXIT(thread)
34 29
35 #define TRACE_ENABLED 0 30 #define TRACE_INIT_ID(k)
31 #define TRACE_DATA TraceThreadData
36 32
37 #define TRACE_INIT_ID(k) 33 #define TRACE_START() JNI_OK
38 #define TRACE_BUFFER void* 34 #define TRACE_INITIALIZE() JNI_OK
39 35
40 #define TRACE_START() true
41 #define TRACE_INITIALIZE() 0
42
43 #define TRACE_SET_KLASS_TRACE_ID(x1, x2) do { } while (0)
44 #define TRACE_DEFINE_KLASS_METHODS typedef int ___IGNORED_hs_trace_type1 36 #define TRACE_DEFINE_KLASS_METHODS typedef int ___IGNORED_hs_trace_type1
45 #define TRACE_DEFINE_KLASS_TRACE_ID typedef int ___IGNORED_hs_trace_type2 37 #define TRACE_DEFINE_KLASS_TRACE_ID typedef int ___IGNORED_hs_trace_type2
46 #define TRACE_DEFINE_OFFSET typedef int ___IGNORED_hs_trace_type3 38 #define TRACE_DEFINE_OFFSET typedef int ___IGNORED_hs_trace_type3
47 #define TRACE_ID_OFFSET in_ByteSize(0); ShouldNotReachHere() 39 #define TRACE_ID_OFFSET in_ByteSize(0); ShouldNotReachHere()
48 #define TRACE_TEMPLATES(template) 40 #define TRACE_TEMPLATES(template)