Ruby  2.0.0p195(2013-05-14revision40734)
probes.h
Go to the documentation of this file.
1 /* Generated by the Systemtap dtrace wrapper */
2 
3 #define _SDT_HAS_SEMAPHORES 1
4 
5 
6 #define STAP_HAS_SEMAPHORES 1 /* deprecated */
7 
8 
9 #include <sys/sdt.h>
10 
11 /* RUBY_DTRACE_METHOD_ENTRY ( const char *, const char *, const char *, int) */
12 #if defined STAP_SDT_V1
13 #define RUBY_DTRACE_METHOD_ENTRY_ENABLED() __builtin_expect (method__entry_semaphore, 0)
14 #define ruby_method__entry_semaphore method__entry_semaphore
15 #else
16 #define RUBY_DTRACE_METHOD_ENTRY_ENABLED() __builtin_expect (ruby_method__entry_semaphore, 0)
17 #endif
18 __extension__ extern unsigned short ruby_method__entry_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
19 #define RUBY_DTRACE_METHOD_ENTRY(arg1,arg2,arg3,arg4) \
20 DTRACE_PROBE4(ruby,method__entry,arg1,arg2,arg3,arg4)
21 
22 /* RUBY_DTRACE_METHOD_RETURN ( const char *, const char *, const char *, int) */
23 #if defined STAP_SDT_V1
24 #define RUBY_DTRACE_METHOD_RETURN_ENABLED() __builtin_expect (method__return_semaphore, 0)
25 #define ruby_method__return_semaphore method__return_semaphore
26 #else
27 #define RUBY_DTRACE_METHOD_RETURN_ENABLED() __builtin_expect (ruby_method__return_semaphore, 0)
28 #endif
29 __extension__ extern unsigned short ruby_method__return_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
30 #define RUBY_DTRACE_METHOD_RETURN(arg1,arg2,arg3,arg4) \
31 DTRACE_PROBE4(ruby,method__return,arg1,arg2,arg3,arg4)
32 
33 /* RUBY_DTRACE_CMETHOD_ENTRY ( const char *, const char *, const char *, int) */
34 #if defined STAP_SDT_V1
35 #define RUBY_DTRACE_CMETHOD_ENTRY_ENABLED() __builtin_expect (cmethod__entry_semaphore, 0)
36 #define ruby_cmethod__entry_semaphore cmethod__entry_semaphore
37 #else
38 #define RUBY_DTRACE_CMETHOD_ENTRY_ENABLED() __builtin_expect (ruby_cmethod__entry_semaphore, 0)
39 #endif
40 __extension__ extern unsigned short ruby_cmethod__entry_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
41 #define RUBY_DTRACE_CMETHOD_ENTRY(arg1,arg2,arg3,arg4) \
42 DTRACE_PROBE4(ruby,cmethod__entry,arg1,arg2,arg3,arg4)
43 
44 /* RUBY_DTRACE_CMETHOD_RETURN ( const char *, const char *, const char *, int) */
45 #if defined STAP_SDT_V1
46 #define RUBY_DTRACE_CMETHOD_RETURN_ENABLED() __builtin_expect (cmethod__return_semaphore, 0)
47 #define ruby_cmethod__return_semaphore cmethod__return_semaphore
48 #else
49 #define RUBY_DTRACE_CMETHOD_RETURN_ENABLED() __builtin_expect (ruby_cmethod__return_semaphore, 0)
50 #endif
51 __extension__ extern unsigned short ruby_cmethod__return_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
52 #define RUBY_DTRACE_CMETHOD_RETURN(arg1,arg2,arg3,arg4) \
53 DTRACE_PROBE4(ruby,cmethod__return,arg1,arg2,arg3,arg4)
54 
55 /* RUBY_DTRACE_REQUIRE_ENTRY ( const char *, const char *, int) */
56 #if defined STAP_SDT_V1
57 #define RUBY_DTRACE_REQUIRE_ENTRY_ENABLED() __builtin_expect (require__entry_semaphore, 0)
58 #define ruby_require__entry_semaphore require__entry_semaphore
59 #else
60 #define RUBY_DTRACE_REQUIRE_ENTRY_ENABLED() __builtin_expect (ruby_require__entry_semaphore, 0)
61 #endif
62 __extension__ extern unsigned short ruby_require__entry_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
63 #define RUBY_DTRACE_REQUIRE_ENTRY(arg1,arg2,arg3) \
64 DTRACE_PROBE3(ruby,require__entry,arg1,arg2,arg3)
65 
66 /* RUBY_DTRACE_REQUIRE_RETURN ( const char *, const char *, int) */
67 #if defined STAP_SDT_V1
68 #define RUBY_DTRACE_REQUIRE_RETURN_ENABLED() __builtin_expect (require__return_semaphore, 0)
69 #define ruby_require__return_semaphore require__return_semaphore
70 #else
71 #define RUBY_DTRACE_REQUIRE_RETURN_ENABLED() __builtin_expect (ruby_require__return_semaphore, 0)
72 #endif
73 __extension__ extern unsigned short ruby_require__return_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
74 #define RUBY_DTRACE_REQUIRE_RETURN(arg1,arg2,arg3) \
75 DTRACE_PROBE3(ruby,require__return,arg1,arg2,arg3)
76 
77 /* RUBY_DTRACE_FIND_REQUIRE_ENTRY ( const char *, const char *, int) */
78 #if defined STAP_SDT_V1
79 #define RUBY_DTRACE_FIND_REQUIRE_ENTRY_ENABLED() __builtin_expect (find__require__entry_semaphore, 0)
80 #define ruby_find__require__entry_semaphore find__require__entry_semaphore
81 #else
82 #define RUBY_DTRACE_FIND_REQUIRE_ENTRY_ENABLED() __builtin_expect (ruby_find__require__entry_semaphore, 0)
83 #endif
84 __extension__ extern unsigned short ruby_find__require__entry_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
85 #define RUBY_DTRACE_FIND_REQUIRE_ENTRY(arg1,arg2,arg3) \
86 DTRACE_PROBE3(ruby,find__require__entry,arg1,arg2,arg3)
87 
88 /* RUBY_DTRACE_FIND_REQUIRE_RETURN ( const char *, const char *, int) */
89 #if defined STAP_SDT_V1
90 #define RUBY_DTRACE_FIND_REQUIRE_RETURN_ENABLED() __builtin_expect (find__require__return_semaphore, 0)
91 #define ruby_find__require__return_semaphore find__require__return_semaphore
92 #else
93 #define RUBY_DTRACE_FIND_REQUIRE_RETURN_ENABLED() __builtin_expect (ruby_find__require__return_semaphore, 0)
94 #endif
95 __extension__ extern unsigned short ruby_find__require__return_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
96 #define RUBY_DTRACE_FIND_REQUIRE_RETURN(arg1,arg2,arg3) \
97 DTRACE_PROBE3(ruby,find__require__return,arg1,arg2,arg3)
98 
99 /* RUBY_DTRACE_LOAD_ENTRY ( const char *, const char *, int) */
100 #if defined STAP_SDT_V1
101 #define RUBY_DTRACE_LOAD_ENTRY_ENABLED() __builtin_expect (load__entry_semaphore, 0)
102 #define ruby_load__entry_semaphore load__entry_semaphore
103 #else
104 #define RUBY_DTRACE_LOAD_ENTRY_ENABLED() __builtin_expect (ruby_load__entry_semaphore, 0)
105 #endif
106 __extension__ extern unsigned short ruby_load__entry_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
107 #define RUBY_DTRACE_LOAD_ENTRY(arg1,arg2,arg3) \
108 DTRACE_PROBE3(ruby,load__entry,arg1,arg2,arg3)
109 
110 /* RUBY_DTRACE_LOAD_RETURN ( const char *, const char *, int) */
111 #if defined STAP_SDT_V1
112 #define RUBY_DTRACE_LOAD_RETURN_ENABLED() __builtin_expect (load__return_semaphore, 0)
113 #define ruby_load__return_semaphore load__return_semaphore
114 #else
115 #define RUBY_DTRACE_LOAD_RETURN_ENABLED() __builtin_expect (ruby_load__return_semaphore, 0)
116 #endif
117 __extension__ extern unsigned short ruby_load__return_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
118 #define RUBY_DTRACE_LOAD_RETURN(arg1,arg2,arg3) \
119 DTRACE_PROBE3(ruby,load__return,arg1,arg2,arg3)
120 
121 /* RUBY_DTRACE_RAISE ( const char *, const char *, int) */
122 #if defined STAP_SDT_V1
123 #define RUBY_DTRACE_RAISE_ENABLED() __builtin_expect (raise_semaphore, 0)
124 #define ruby_raise_semaphore raise_semaphore
125 #else
126 #define RUBY_DTRACE_RAISE_ENABLED() __builtin_expect (ruby_raise_semaphore, 0)
127 #endif
128 __extension__ extern unsigned short ruby_raise_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
129 #define RUBY_DTRACE_RAISE(arg1,arg2,arg3) \
130 DTRACE_PROBE3(ruby,raise,arg1,arg2,arg3)
131 
132 /* RUBY_DTRACE_OBJECT_CREATE ( const char *, const char *, int) */
133 #if defined STAP_SDT_V1
134 #define RUBY_DTRACE_OBJECT_CREATE_ENABLED() __builtin_expect (object__create_semaphore, 0)
135 #define ruby_object__create_semaphore object__create_semaphore
136 #else
137 #define RUBY_DTRACE_OBJECT_CREATE_ENABLED() __builtin_expect (ruby_object__create_semaphore, 0)
138 #endif
139 __extension__ extern unsigned short ruby_object__create_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
140 #define RUBY_DTRACE_OBJECT_CREATE(arg1,arg2,arg3) \
141 DTRACE_PROBE3(ruby,object__create,arg1,arg2,arg3)
142 
143 /* RUBY_DTRACE_ARRAY_CREATE ( long, const char *, int) */
144 #if defined STAP_SDT_V1
145 #define RUBY_DTRACE_ARRAY_CREATE_ENABLED() __builtin_expect (array__create_semaphore, 0)
146 #define ruby_array__create_semaphore array__create_semaphore
147 #else
148 #define RUBY_DTRACE_ARRAY_CREATE_ENABLED() __builtin_expect (ruby_array__create_semaphore, 0)
149 #endif
150 __extension__ extern unsigned short ruby_array__create_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
151 #define RUBY_DTRACE_ARRAY_CREATE(arg1,arg2,arg3) \
152 DTRACE_PROBE3(ruby,array__create,arg1,arg2,arg3)
153 
154 /* RUBY_DTRACE_HASH_CREATE ( long, const char *, int) */
155 #if defined STAP_SDT_V1
156 #define RUBY_DTRACE_HASH_CREATE_ENABLED() __builtin_expect (hash__create_semaphore, 0)
157 #define ruby_hash__create_semaphore hash__create_semaphore
158 #else
159 #define RUBY_DTRACE_HASH_CREATE_ENABLED() __builtin_expect (ruby_hash__create_semaphore, 0)
160 #endif
161 __extension__ extern unsigned short ruby_hash__create_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
162 #define RUBY_DTRACE_HASH_CREATE(arg1,arg2,arg3) \
163 DTRACE_PROBE3(ruby,hash__create,arg1,arg2,arg3)
164 
165 /* RUBY_DTRACE_STRING_CREATE ( long, const char *, int) */
166 #if defined STAP_SDT_V1
167 #define RUBY_DTRACE_STRING_CREATE_ENABLED() __builtin_expect (string__create_semaphore, 0)
168 #define ruby_string__create_semaphore string__create_semaphore
169 #else
170 #define RUBY_DTRACE_STRING_CREATE_ENABLED() __builtin_expect (ruby_string__create_semaphore, 0)
171 #endif
172 __extension__ extern unsigned short ruby_string__create_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
173 #define RUBY_DTRACE_STRING_CREATE(arg1,arg2,arg3) \
174 DTRACE_PROBE3(ruby,string__create,arg1,arg2,arg3)
175 
176 /* RUBY_DTRACE_PARSE_BEGIN ( const char *, int) */
177 #if defined STAP_SDT_V1
178 #define RUBY_DTRACE_PARSE_BEGIN_ENABLED() __builtin_expect (parse__begin_semaphore, 0)
179 #define ruby_parse__begin_semaphore parse__begin_semaphore
180 #else
181 #define RUBY_DTRACE_PARSE_BEGIN_ENABLED() __builtin_expect (ruby_parse__begin_semaphore, 0)
182 #endif
183 __extension__ extern unsigned short ruby_parse__begin_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
184 #define RUBY_DTRACE_PARSE_BEGIN(arg1,arg2) \
185 DTRACE_PROBE2(ruby,parse__begin,arg1,arg2)
186 
187 /* RUBY_DTRACE_PARSE_END ( const char *, int) */
188 #if defined STAP_SDT_V1
189 #define RUBY_DTRACE_PARSE_END_ENABLED() __builtin_expect (parse__end_semaphore, 0)
190 #define ruby_parse__end_semaphore parse__end_semaphore
191 #else
192 #define RUBY_DTRACE_PARSE_END_ENABLED() __builtin_expect (ruby_parse__end_semaphore, 0)
193 #endif
194 __extension__ extern unsigned short ruby_parse__end_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
195 #define RUBY_DTRACE_PARSE_END(arg1,arg2) \
196 DTRACE_PROBE2(ruby,parse__end,arg1,arg2)
197 
198 /* RUBY_DTRACE_GC_MARK_BEGIN () */
199 #if defined STAP_SDT_V1
200 #define RUBY_DTRACE_GC_MARK_BEGIN_ENABLED() __builtin_expect (gc__mark__begin_semaphore, 0)
201 #define ruby_gc__mark__begin_semaphore gc__mark__begin_semaphore
202 #else
203 #define RUBY_DTRACE_GC_MARK_BEGIN_ENABLED() __builtin_expect (ruby_gc__mark__begin_semaphore, 0)
204 #endif
205 __extension__ extern unsigned short ruby_gc__mark__begin_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
206 #define RUBY_DTRACE_GC_MARK_BEGIN() \
207 DTRACE_PROBE(ruby,gc__mark__begin)
208 
209 /* RUBY_DTRACE_GC_MARK_END () */
210 #if defined STAP_SDT_V1
211 #define RUBY_DTRACE_GC_MARK_END_ENABLED() __builtin_expect (gc__mark__end_semaphore, 0)
212 #define ruby_gc__mark__end_semaphore gc__mark__end_semaphore
213 #else
214 #define RUBY_DTRACE_GC_MARK_END_ENABLED() __builtin_expect (ruby_gc__mark__end_semaphore, 0)
215 #endif
216 __extension__ extern unsigned short ruby_gc__mark__end_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
217 #define RUBY_DTRACE_GC_MARK_END() \
218 DTRACE_PROBE(ruby,gc__mark__end)
219 
220 /* RUBY_DTRACE_GC_SWEEP_BEGIN () */
221 #if defined STAP_SDT_V1
222 #define RUBY_DTRACE_GC_SWEEP_BEGIN_ENABLED() __builtin_expect (gc__sweep__begin_semaphore, 0)
223 #define ruby_gc__sweep__begin_semaphore gc__sweep__begin_semaphore
224 #else
225 #define RUBY_DTRACE_GC_SWEEP_BEGIN_ENABLED() __builtin_expect (ruby_gc__sweep__begin_semaphore, 0)
226 #endif
227 __extension__ extern unsigned short ruby_gc__sweep__begin_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
228 #define RUBY_DTRACE_GC_SWEEP_BEGIN() \
229 DTRACE_PROBE(ruby,gc__sweep__begin)
230 
231 /* RUBY_DTRACE_GC_SWEEP_END () */
232 #if defined STAP_SDT_V1
233 #define RUBY_DTRACE_GC_SWEEP_END_ENABLED() __builtin_expect (gc__sweep__end_semaphore, 0)
234 #define ruby_gc__sweep__end_semaphore gc__sweep__end_semaphore
235 #else
236 #define RUBY_DTRACE_GC_SWEEP_END_ENABLED() __builtin_expect (ruby_gc__sweep__end_semaphore, 0)
237 #endif
238 __extension__ extern unsigned short ruby_gc__sweep__end_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
239 #define RUBY_DTRACE_GC_SWEEP_END() \
240 DTRACE_PROBE(ruby,gc__sweep__end)
241 
242