hotspot/src/share/vm/utilities/dtrace.hpp
author sla
Mon, 03 Feb 2014 13:41:26 +0100
changeset 22736 6c317cced072
parent 22520 b9e88eed82d7
child 22796 bb0ea482a99e
permissions -rw-r--r--
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1 Reviewed-by: coleenp, sspitsyn, kamg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
     2
 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
     3
 * Copyright (c) 2009, 2012 Red Hat, Inc.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5542
diff changeset
    20
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5542
diff changeset
    21
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5542
diff changeset
    22
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#ifndef SHARE_VM_UTILITIES_DTRACE_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
#define SHARE_VM_UTILITIES_DTRACE_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    29
#if defined(DTRACE_ENABLED)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
#include <sys/sdt.h>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
#define DTRACE_ONLY(x) x
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
#define NOT_DTRACE(x)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    36
#if defined(SOLARIS)
5542
be05c5ffe905 6951319: enable solaris builds using Sun Studio 12 update 1
jcoomes
parents: 1
diff changeset
    37
// Work around dtrace tail call bug 6672627 until it is fixed in solaris 10.
be05c5ffe905 6951319: enable solaris builds using Sun Studio 12 update 1
jcoomes
parents: 1
diff changeset
    38
#define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG() \
be05c5ffe905 6951319: enable solaris builds using Sun Studio 12 update 1
jcoomes
parents: 1
diff changeset
    39
  do { volatile size_t dtrace_workaround_tail_call_bug = 1; } while (0)
be05c5ffe905 6951319: enable solaris builds using Sun Studio 12 update 1
jcoomes
parents: 1
diff changeset
    40
22736
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    41
#elif defined(LINUX)
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    42
#define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG()
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    43
#elif defined(__APPLE__)
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    44
#define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG()
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    45
#include <sys/types.h>
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    46
#else
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    47
#error "dtrace enabled for unknown os"
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    48
#endif /* defined(SOLARIS) */
6c317cced072 8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents: 22520
diff changeset
    49
22520
b9e88eed82d7 8030812: Change the solaris DTrace implementation to use USDT2 instead of USDT1
sla
parents: 13958
diff changeset
    50
#define USDT2 1
b9e88eed82d7 8030812: Change the solaris DTrace implementation to use USDT2 instead of USDT1
sla
parents: 13958
diff changeset
    51
#include "dtracefiles/hotspot.h"
b9e88eed82d7 8030812: Change the solaris DTrace implementation to use USDT2 instead of USDT1
sla
parents: 13958
diff changeset
    52
#include "dtracefiles/hotspot_jni.h"
b9e88eed82d7 8030812: Change the solaris DTrace implementation to use USDT2 instead of USDT1
sla
parents: 13958
diff changeset
    53
#include "dtracefiles/hs_private.h"
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    54
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    55
#else /* defined(DTRACE_ENABLED) */
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
#define DTRACE_ONLY(x)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
#define NOT_DTRACE(x) x
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    60
#define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG()
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    61
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    62
#ifndef USDT2
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    63
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
#define DTRACE_PROBE(a,b) {;}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
#define DTRACE_PROBE1(a,b,c) {;}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
#define DTRACE_PROBE2(a,b,c,d) {;}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
#define DTRACE_PROBE3(a,b,c,d,e) {;}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
#define DTRACE_PROBE4(a,b,c,d,e,f) {;}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
#define DTRACE_PROBE5(a,b,c,d,e,f,g) {;}
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    70
#define DTRACE_PROBE6(a,b,c,d,e,f,g,h) {;}
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    71
#define DTRACE_PROBE7(a,b,c,d,e,f,g,h,i) {;}
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    72
#define DTRACE_PROBE8(a,b,c,d,e,f,g,h,i,j) {;}
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    73
#define DTRACE_PROBE9(a,b,c,d,e,f,g,h,i,j,k) {;}
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    74
#define DTRACE_PROBE10(a,b,c,d,e,f,g,h,i,j,k,l) {;}
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    76
#else /* USDT2 */
5542
be05c5ffe905 6951319: enable solaris builds using Sun Studio 12 update 1
jcoomes
parents: 1
diff changeset
    77
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    78
#include "dtrace_usdt2_disabled.hpp"
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    79
#endif /* USDT2 */
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    80
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    81
#endif /* defined(DTRACE_ENABLED) */
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    82
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
    83
#ifndef USDT2
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
#define HS_DTRACE_PROBE_FN(provider,name)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  __dtrace_##provider##___##name
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    88
#ifdef SOLARIS
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    89
// Solaris dtrace needs actual extern function decls.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
#define HS_DTRACE_PROBE_DECL_N(provider,name,args) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  DTRACE_ONLY(extern "C" void HS_DTRACE_PROBE_FN(provider,name) args)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
#define HS_DTRACE_PROBE_CDECL_N(provider,name,args) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  DTRACE_ONLY(extern void HS_DTRACE_PROBE_FN(provider,name) args)
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    94
#else
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    95
// Systemtap dtrace compatible probes on GNU/Linux don't.
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    96
// If dtrace is disabled this macro becomes NULL
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    97
#define HS_DTRACE_PROBE_DECL_N(provider,name,args)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    98
#define HS_DTRACE_PROBE_CDECL_N(provider,name,args)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
    99
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
/* Dtrace probe declarations */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
#define HS_DTRACE_PROBE_DECL(provider,name) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  HS_DTRACE_PROBE_DECL0(provider,name)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
#define HS_DTRACE_PROBE_DECL0(provider,name)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  HS_DTRACE_PROBE_DECL_N(provider,name,(void))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
#define HS_DTRACE_PROBE_DECL1(provider,name,t0)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  HS_DTRACE_PROBE_DECL_N(provider,name,(uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
#define HS_DTRACE_PROBE_DECL2(provider,name,t0,t1)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  HS_DTRACE_PROBE_DECL_N(provider,name,(uintptr_t,uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
#define HS_DTRACE_PROBE_DECL3(provider,name,t0,t1,t2)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  HS_DTRACE_PROBE_DECL_N(provider,name,(uintptr_t,uintptr_t,uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
#define HS_DTRACE_PROBE_DECL4(provider,name,t0,t1,t2,t3)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  HS_DTRACE_PROBE_DECL_N(provider,name,(uintptr_t,uintptr_t,uintptr_t,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
    uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
#define HS_DTRACE_PROBE_DECL5(provider,name,t0,t1,t2,t3,t4)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  HS_DTRACE_PROBE_DECL_N(provider,name,(\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
    uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
#define HS_DTRACE_PROBE_DECL6(provider,name,t0,t1,t2,t3,t4,t5)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
  HS_DTRACE_PROBE_DECL_N(provider,name,(\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
    uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
#define HS_DTRACE_PROBE_DECL7(provider,name,t0,t1,t2,t3,t4,t5,t6)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  HS_DTRACE_PROBE_DECL_N(provider,name,(\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
    uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
#define HS_DTRACE_PROBE_DECL8(provider,name,t0,t1,t2,t3,t4,t5,t6,t7)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
  HS_DTRACE_PROBE_DECL_N(provider,name,(\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
    uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
    uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
#define HS_DTRACE_PROBE_DECL9(provider,name,t0,t1,t2,t3,t4,t5,t6,t7,t8)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
  HS_DTRACE_PROBE_DECL_N(provider,name,(\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
    uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
    uintptr_t,uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
#define HS_DTRACE_PROBE_DECL10(provider,name,t0,t1,t2,t3,t4,t5,t6,t7,t8,t9)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  HS_DTRACE_PROBE_DECL_N(provider,name,(\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
    uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,uintptr_t,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
    uintptr_t,uintptr_t,uintptr_t))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
/* Dtrace probe definitions */
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   138
#if defined(SOLARIS)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   139
// Solaris dtrace uses actual function calls.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
#define HS_DTRACE_PROBE_N(provider,name, args) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
  DTRACE_ONLY(HS_DTRACE_PROBE_FN(provider,name) args)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
#define HS_DTRACE_PROBE(provider,name) HS_DTRACE_PROBE0(provider,name)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
#define HS_DTRACE_PROBE0(provider,name)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
  HS_DTRACE_PROBE_N(provider,name,())
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
#define HS_DTRACE_PROBE1(provider,name,a0)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
#define HS_DTRACE_PROBE2(provider,name,a0,a1)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
#define HS_DTRACE_PROBE3(provider,name,a0,a1,a2)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
#define HS_DTRACE_PROBE4(provider,name,a0,a1,a2,a3)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
    (uintptr_t)a3))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
#define HS_DTRACE_PROBE5(provider,name,a0,a1,a2,a3,a4)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
    (uintptr_t)a3,(uintptr_t)a4))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
#define HS_DTRACE_PROBE6(provider,name,a0,a1,a2,a3,a4,a5)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
    (uintptr_t)a3,(uintptr_t)a4,(uintptr_t)a5))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
#define HS_DTRACE_PROBE7(provider,name,a0,a1,a2,a3,a4,a5,a6)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
    (uintptr_t)a3,(uintptr_t)a4,(uintptr_t)a5,(uintptr_t)a6))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
#define HS_DTRACE_PROBE8(provider,name,a0,a1,a2,a3,a4,a5,a6,a7)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
    (uintptr_t)a3,(uintptr_t)a4,(uintptr_t)a5,(uintptr_t)a6,(uintptr_t)a7))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
#define HS_DTRACE_PROBE9(provider,name,a0,a1,a2,a3,a4,a5,a6,a7,a8)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
    (uintptr_t)a3,(uintptr_t)a4,(uintptr_t)a5,(uintptr_t)a6,(uintptr_t)a7,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
    (uintptr_t)a8))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
#define HS_DTRACE_PROBE10(provider,name,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9)\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
  HS_DTRACE_PROBE_N(provider,name,((uintptr_t)a0,(uintptr_t)a1,(uintptr_t)a2,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
    (uintptr_t)a3,(uintptr_t)a4,(uintptr_t)a5,(uintptr_t)a6,(uintptr_t)a7,\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
    (uintptr_t)a8,(uintptr_t)a9))
13958
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   175
#else
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   176
// Systemtap dtrace compatible probes on GNU/Linux use direct macros.
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   177
// If dtrace is disabled this macro becomes NULL
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   178
#define HS_DTRACE_PROBE(provider,name) HS_DTRACE_PROBE0(provider,name)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   179
#define HS_DTRACE_PROBE0(provider,name)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   180
  DTRACE_PROBE(provider,name)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   181
#define HS_DTRACE_PROBE1(provider,name,a0)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   182
  DTRACE_PROBE1(provider,name,a0)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   183
#define HS_DTRACE_PROBE2(provider,name,a0,a1)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   184
  DTRACE_PROBE2(provider,name,a0,a1)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   185
#define HS_DTRACE_PROBE3(provider,name,a0,a1,a2)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   186
  DTRACE_PROBE3(provider,name,a0,a1,a2)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   187
#define HS_DTRACE_PROBE4(provider,name,a0,a1,a2,a3)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   188
  DTRACE_PROBE4(provider,name,a0,a1,a2,a3)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   189
#define HS_DTRACE_PROBE5(provider,name,a0,a1,a2,a3,a4)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   190
  DTRACE_PROBE5(provider,name,a0,a1,a2,a3,a4)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   191
#define HS_DTRACE_PROBE6(provider,name,a0,a1,a2,a3,a4,a5)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   192
  DTRACE_PROBE6(provider,name,a0,a1,a2,a3,a4,a5)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   193
#define HS_DTRACE_PROBE7(provider,name,a0,a1,a2,a3,a4,a5,a6)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   194
  DTRACE_PROBE7(provider,name,a0,a1,a2,a3,a4,a5,a6)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   195
#define HS_DTRACE_PROBE8(provider,name,a0,a1,a2,a3,a4,a5,a6,a7)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   196
  DTRACE_PROBE8(provider,name,a0,a1,a2,a3,a4,a5,a6,a7)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   197
#define HS_DTRACE_PROBE9(provider,name,a0,a1,a2,a3,a4,a5,a6,a7,a8)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   198
  DTRACE_PROBE9(provider,name,a0,a1,a2,a3,a4,a5,a6,a7,a8)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   199
#define HS_DTRACE_PROBE10(provider,name,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9)\
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   200
  DTRACE_PROBE10(provider,name,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9)
f5598a86c223 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 10739
diff changeset
   201
#endif
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   202
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
   203
#endif /* !USDT2 */
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 7397
diff changeset
   204
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   205
#endif // SHARE_VM_UTILITIES_DTRACE_HPP