Drizzled Public API Documentation

generated_probes.h
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 /* DRIZZLE_CONNECTION_START ( unsigned long conn_id) */
12 #if defined STAP_SDT_V1
13 #define DRIZZLE_CONNECTION_START_ENABLED() __builtin_expect (connection__start_semaphore, 0)
14 #define drizzle_connection__start_semaphore connection__start_semaphore
15 #else
16 #define DRIZZLE_CONNECTION_START_ENABLED() __builtin_expect (drizzle_connection__start_semaphore, 0)
17 #endif
18 __extension__ extern unsigned short drizzle_connection__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
19 #define DRIZZLE_CONNECTION_START(arg1) \
20 DTRACE_PROBE1(drizzle,connection__start,arg1)
21 
22 /* DRIZZLE_CONNECTION_DONE ( unsigned long conn_id) */
23 #if defined STAP_SDT_V1
24 #define DRIZZLE_CONNECTION_DONE_ENABLED() __builtin_expect (connection__done_semaphore, 0)
25 #define drizzle_connection__done_semaphore connection__done_semaphore
26 #else
27 #define DRIZZLE_CONNECTION_DONE_ENABLED() __builtin_expect (drizzle_connection__done_semaphore, 0)
28 #endif
29 __extension__ extern unsigned short drizzle_connection__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
30 #define DRIZZLE_CONNECTION_DONE(arg1) \
31 DTRACE_PROBE1(drizzle,connection__done,arg1)
32 
33 /* DRIZZLE_COMMAND_START ( unsigned long conn_id, int command) */
34 #if defined STAP_SDT_V1
35 #define DRIZZLE_COMMAND_START_ENABLED() __builtin_expect (command__start_semaphore, 0)
36 #define drizzle_command__start_semaphore command__start_semaphore
37 #else
38 #define DRIZZLE_COMMAND_START_ENABLED() __builtin_expect (drizzle_command__start_semaphore, 0)
39 #endif
40 __extension__ extern unsigned short drizzle_command__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
41 #define DRIZZLE_COMMAND_START(arg1,arg2) \
42 DTRACE_PROBE2(drizzle,command__start,arg1,arg2)
43 
44 /* DRIZZLE_COMMAND_DONE ( int status) */
45 #if defined STAP_SDT_V1
46 #define DRIZZLE_COMMAND_DONE_ENABLED() __builtin_expect (command__done_semaphore, 0)
47 #define drizzle_command__done_semaphore command__done_semaphore
48 #else
49 #define DRIZZLE_COMMAND_DONE_ENABLED() __builtin_expect (drizzle_command__done_semaphore, 0)
50 #endif
51 __extension__ extern unsigned short drizzle_command__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
52 #define DRIZZLE_COMMAND_DONE(arg1) \
53 DTRACE_PROBE1(drizzle,command__done,arg1)
54 
55 /* DRIZZLE_QUERY_START ( const char *query, unsigned long conn_id, const char *db_name) */
56 #if defined STAP_SDT_V1
57 #define DRIZZLE_QUERY_START_ENABLED() __builtin_expect (query__start_semaphore, 0)
58 #define drizzle_query__start_semaphore query__start_semaphore
59 #else
60 #define DRIZZLE_QUERY_START_ENABLED() __builtin_expect (drizzle_query__start_semaphore, 0)
61 #endif
62 __extension__ extern unsigned short drizzle_query__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
63 #define DRIZZLE_QUERY_START(arg1,arg2,arg3) \
64 DTRACE_PROBE3(drizzle,query__start,arg1,arg2,arg3)
65 
66 /* DRIZZLE_QUERY_DONE ( int status) */
67 #if defined STAP_SDT_V1
68 #define DRIZZLE_QUERY_DONE_ENABLED() __builtin_expect (query__done_semaphore, 0)
69 #define drizzle_query__done_semaphore query__done_semaphore
70 #else
71 #define DRIZZLE_QUERY_DONE_ENABLED() __builtin_expect (drizzle_query__done_semaphore, 0)
72 #endif
73 __extension__ extern unsigned short drizzle_query__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
74 #define DRIZZLE_QUERY_DONE(arg1) \
75 DTRACE_PROBE1(drizzle,query__done,arg1)
76 
77 /* DRIZZLE_QUERY_PARSE_START ( const char *query) */
78 #if defined STAP_SDT_V1
79 #define DRIZZLE_QUERY_PARSE_START_ENABLED() __builtin_expect (query__parse__start_semaphore, 0)
80 #define drizzle_query__parse__start_semaphore query__parse__start_semaphore
81 #else
82 #define DRIZZLE_QUERY_PARSE_START_ENABLED() __builtin_expect (drizzle_query__parse__start_semaphore, 0)
83 #endif
84 __extension__ extern unsigned short drizzle_query__parse__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
85 #define DRIZZLE_QUERY_PARSE_START(arg1) \
86 DTRACE_PROBE1(drizzle,query__parse__start,arg1)
87 
88 /* DRIZZLE_QUERY_PARSE_DONE ( int status) */
89 #if defined STAP_SDT_V1
90 #define DRIZZLE_QUERY_PARSE_DONE_ENABLED() __builtin_expect (query__parse__done_semaphore, 0)
91 #define drizzle_query__parse__done_semaphore query__parse__done_semaphore
92 #else
93 #define DRIZZLE_QUERY_PARSE_DONE_ENABLED() __builtin_expect (drizzle_query__parse__done_semaphore, 0)
94 #endif
95 __extension__ extern unsigned short drizzle_query__parse__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
96 #define DRIZZLE_QUERY_PARSE_DONE(arg1) \
97 DTRACE_PROBE1(drizzle,query__parse__done,arg1)
98 
99 /* DRIZZLE_QUERY_EXEC_START ( const char *query, unsigned long connid, const char *db_name) */
100 #if defined STAP_SDT_V1
101 #define DRIZZLE_QUERY_EXEC_START_ENABLED() __builtin_expect (query__exec__start_semaphore, 0)
102 #define drizzle_query__exec__start_semaphore query__exec__start_semaphore
103 #else
104 #define DRIZZLE_QUERY_EXEC_START_ENABLED() __builtin_expect (drizzle_query__exec__start_semaphore, 0)
105 #endif
106 __extension__ extern unsigned short drizzle_query__exec__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
107 #define DRIZZLE_QUERY_EXEC_START(arg1,arg2,arg3) \
108 DTRACE_PROBE3(drizzle,query__exec__start,arg1,arg2,arg3)
109 
110 /* DRIZZLE_QUERY_EXEC_DONE ( int status) */
111 #if defined STAP_SDT_V1
112 #define DRIZZLE_QUERY_EXEC_DONE_ENABLED() __builtin_expect (query__exec__done_semaphore, 0)
113 #define drizzle_query__exec__done_semaphore query__exec__done_semaphore
114 #else
115 #define DRIZZLE_QUERY_EXEC_DONE_ENABLED() __builtin_expect (drizzle_query__exec__done_semaphore, 0)
116 #endif
117 __extension__ extern unsigned short drizzle_query__exec__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
118 #define DRIZZLE_QUERY_EXEC_DONE(arg1) \
119 DTRACE_PROBE1(drizzle,query__exec__done,arg1)
120 
121 /* DRIZZLE_QUERY_OPT_START ( const char *query, unsigned long connid) */
122 #if defined STAP_SDT_V1
123 #define DRIZZLE_QUERY_OPT_START_ENABLED() __builtin_expect (query__opt__start_semaphore, 0)
124 #define drizzle_query__opt__start_semaphore query__opt__start_semaphore
125 #else
126 #define DRIZZLE_QUERY_OPT_START_ENABLED() __builtin_expect (drizzle_query__opt__start_semaphore, 0)
127 #endif
128 __extension__ extern unsigned short drizzle_query__opt__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
129 #define DRIZZLE_QUERY_OPT_START(arg1,arg2) \
130 DTRACE_PROBE2(drizzle,query__opt__start,arg1,arg2)
131 
132 /* DRIZZLE_QUERY_OPT_DONE ( int status) */
133 #if defined STAP_SDT_V1
134 #define DRIZZLE_QUERY_OPT_DONE_ENABLED() __builtin_expect (query__opt__done_semaphore, 0)
135 #define drizzle_query__opt__done_semaphore query__opt__done_semaphore
136 #else
137 #define DRIZZLE_QUERY_OPT_DONE_ENABLED() __builtin_expect (drizzle_query__opt__done_semaphore, 0)
138 #endif
139 __extension__ extern unsigned short drizzle_query__opt__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
140 #define DRIZZLE_QUERY_OPT_DONE(arg1) \
141 DTRACE_PROBE1(drizzle,query__opt__done,arg1)
142 
143 /* DRIZZLE_QUERY_OPT_CHOOSE_PLAN_START ( const char *query, unsigned long connid) */
144 #if defined STAP_SDT_V1
145 #define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_START_ENABLED() __builtin_expect (query__opt__choose__plan__start_semaphore, 0)
146 #define drizzle_query__opt__choose__plan__start_semaphore query__opt__choose__plan__start_semaphore
147 #else
148 #define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_START_ENABLED() __builtin_expect (drizzle_query__opt__choose__plan__start_semaphore, 0)
149 #endif
150 __extension__ extern unsigned short drizzle_query__opt__choose__plan__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
151 #define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_START(arg1,arg2) \
152 DTRACE_PROBE2(drizzle,query__opt__choose__plan__start,arg1,arg2)
153 
154 /* DRIZZLE_QUERY_OPT_CHOOSE_PLAN_DONE ( int status) */
155 #if defined STAP_SDT_V1
156 #define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_DONE_ENABLED() __builtin_expect (query__opt__choose__plan__done_semaphore, 0)
157 #define drizzle_query__opt__choose__plan__done_semaphore query__opt__choose__plan__done_semaphore
158 #else
159 #define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_DONE_ENABLED() __builtin_expect (drizzle_query__opt__choose__plan__done_semaphore, 0)
160 #endif
161 __extension__ extern unsigned short drizzle_query__opt__choose__plan__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
162 #define DRIZZLE_QUERY_OPT_CHOOSE_PLAN_DONE(arg1) \
163 DTRACE_PROBE1(drizzle,query__opt__choose__plan__done,arg1)
164 
165 /* DRIZZLE_INSERT_ROW_START ( const char *db, const char *table) */
166 #if defined STAP_SDT_V1
167 #define DRIZZLE_INSERT_ROW_START_ENABLED() __builtin_expect (insert__row__start_semaphore, 0)
168 #define drizzle_insert__row__start_semaphore insert__row__start_semaphore
169 #else
170 #define DRIZZLE_INSERT_ROW_START_ENABLED() __builtin_expect (drizzle_insert__row__start_semaphore, 0)
171 #endif
172 __extension__ extern unsigned short drizzle_insert__row__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
173 #define DRIZZLE_INSERT_ROW_START(arg1,arg2) \
174 DTRACE_PROBE2(drizzle,insert__row__start,arg1,arg2)
175 
176 /* DRIZZLE_INSERT_ROW_DONE ( int status) */
177 #if defined STAP_SDT_V1
178 #define DRIZZLE_INSERT_ROW_DONE_ENABLED() __builtin_expect (insert__row__done_semaphore, 0)
179 #define drizzle_insert__row__done_semaphore insert__row__done_semaphore
180 #else
181 #define DRIZZLE_INSERT_ROW_DONE_ENABLED() __builtin_expect (drizzle_insert__row__done_semaphore, 0)
182 #endif
183 __extension__ extern unsigned short drizzle_insert__row__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
184 #define DRIZZLE_INSERT_ROW_DONE(arg1) \
185 DTRACE_PROBE1(drizzle,insert__row__done,arg1)
186 
187 /* DRIZZLE_UPDATE_ROW_START ( const char *db, const char *table) */
188 #if defined STAP_SDT_V1
189 #define DRIZZLE_UPDATE_ROW_START_ENABLED() __builtin_expect (update__row__start_semaphore, 0)
190 #define drizzle_update__row__start_semaphore update__row__start_semaphore
191 #else
192 #define DRIZZLE_UPDATE_ROW_START_ENABLED() __builtin_expect (drizzle_update__row__start_semaphore, 0)
193 #endif
194 __extension__ extern unsigned short drizzle_update__row__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
195 #define DRIZZLE_UPDATE_ROW_START(arg1,arg2) \
196 DTRACE_PROBE2(drizzle,update__row__start,arg1,arg2)
197 
198 /* DRIZZLE_UPDATE_ROW_DONE ( int status) */
199 #if defined STAP_SDT_V1
200 #define DRIZZLE_UPDATE_ROW_DONE_ENABLED() __builtin_expect (update__row__done_semaphore, 0)
201 #define drizzle_update__row__done_semaphore update__row__done_semaphore
202 #else
203 #define DRIZZLE_UPDATE_ROW_DONE_ENABLED() __builtin_expect (drizzle_update__row__done_semaphore, 0)
204 #endif
205 __extension__ extern unsigned short drizzle_update__row__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
206 #define DRIZZLE_UPDATE_ROW_DONE(arg1) \
207 DTRACE_PROBE1(drizzle,update__row__done,arg1)
208 
209 /* DRIZZLE_DELETE_ROW_START ( const char *db, const char *table) */
210 #if defined STAP_SDT_V1
211 #define DRIZZLE_DELETE_ROW_START_ENABLED() __builtin_expect (delete__row__start_semaphore, 0)
212 #define drizzle_delete__row__start_semaphore delete__row__start_semaphore
213 #else
214 #define DRIZZLE_DELETE_ROW_START_ENABLED() __builtin_expect (drizzle_delete__row__start_semaphore, 0)
215 #endif
216 __extension__ extern unsigned short drizzle_delete__row__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
217 #define DRIZZLE_DELETE_ROW_START(arg1,arg2) \
218 DTRACE_PROBE2(drizzle,delete__row__start,arg1,arg2)
219 
220 /* DRIZZLE_DELETE_ROW_DONE ( int status) */
221 #if defined STAP_SDT_V1
222 #define DRIZZLE_DELETE_ROW_DONE_ENABLED() __builtin_expect (delete__row__done_semaphore, 0)
223 #define drizzle_delete__row__done_semaphore delete__row__done_semaphore
224 #else
225 #define DRIZZLE_DELETE_ROW_DONE_ENABLED() __builtin_expect (drizzle_delete__row__done_semaphore, 0)
226 #endif
227 __extension__ extern unsigned short drizzle_delete__row__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
228 #define DRIZZLE_DELETE_ROW_DONE(arg1) \
229 DTRACE_PROBE1(drizzle,delete__row__done,arg1)
230 
231 /* DRIZZLE_CURSOR_RDLOCK_START ( const char *db, const char *table) */
232 #if defined STAP_SDT_V1
233 #define DRIZZLE_CURSOR_RDLOCK_START_ENABLED() __builtin_expect (cursor__rdlock__start_semaphore, 0)
234 #define drizzle_cursor__rdlock__start_semaphore cursor__rdlock__start_semaphore
235 #else
236 #define DRIZZLE_CURSOR_RDLOCK_START_ENABLED() __builtin_expect (drizzle_cursor__rdlock__start_semaphore, 0)
237 #endif
238 __extension__ extern unsigned short drizzle_cursor__rdlock__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
239 #define DRIZZLE_CURSOR_RDLOCK_START(arg1,arg2) \
240 DTRACE_PROBE2(drizzle,cursor__rdlock__start,arg1,arg2)
241 
242 /* DRIZZLE_CURSOR_WRLOCK_START ( const char *db, const char *table) */
243 #if defined STAP_SDT_V1
244 #define DRIZZLE_CURSOR_WRLOCK_START_ENABLED() __builtin_expect (cursor__wrlock__start_semaphore, 0)
245 #define drizzle_cursor__wrlock__start_semaphore cursor__wrlock__start_semaphore
246 #else
247 #define DRIZZLE_CURSOR_WRLOCK_START_ENABLED() __builtin_expect (drizzle_cursor__wrlock__start_semaphore, 0)
248 #endif
249 __extension__ extern unsigned short drizzle_cursor__wrlock__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
250 #define DRIZZLE_CURSOR_WRLOCK_START(arg1,arg2) \
251 DTRACE_PROBE2(drizzle,cursor__wrlock__start,arg1,arg2)
252 
253 /* DRIZZLE_CURSOR_UNLOCK_START ( const char *db, const char *table) */
254 #if defined STAP_SDT_V1
255 #define DRIZZLE_CURSOR_UNLOCK_START_ENABLED() __builtin_expect (cursor__unlock__start_semaphore, 0)
256 #define drizzle_cursor__unlock__start_semaphore cursor__unlock__start_semaphore
257 #else
258 #define DRIZZLE_CURSOR_UNLOCK_START_ENABLED() __builtin_expect (drizzle_cursor__unlock__start_semaphore, 0)
259 #endif
260 __extension__ extern unsigned short drizzle_cursor__unlock__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
261 #define DRIZZLE_CURSOR_UNLOCK_START(arg1,arg2) \
262 DTRACE_PROBE2(drizzle,cursor__unlock__start,arg1,arg2)
263 
264 /* DRIZZLE_CURSOR_RDLOCK_DONE ( int status) */
265 #if defined STAP_SDT_V1
266 #define DRIZZLE_CURSOR_RDLOCK_DONE_ENABLED() __builtin_expect (cursor__rdlock__done_semaphore, 0)
267 #define drizzle_cursor__rdlock__done_semaphore cursor__rdlock__done_semaphore
268 #else
269 #define DRIZZLE_CURSOR_RDLOCK_DONE_ENABLED() __builtin_expect (drizzle_cursor__rdlock__done_semaphore, 0)
270 #endif
271 __extension__ extern unsigned short drizzle_cursor__rdlock__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
272 #define DRIZZLE_CURSOR_RDLOCK_DONE(arg1) \
273 DTRACE_PROBE1(drizzle,cursor__rdlock__done,arg1)
274 
275 /* DRIZZLE_CURSOR_WRLOCK_DONE ( int status) */
276 #if defined STAP_SDT_V1
277 #define DRIZZLE_CURSOR_WRLOCK_DONE_ENABLED() __builtin_expect (cursor__wrlock__done_semaphore, 0)
278 #define drizzle_cursor__wrlock__done_semaphore cursor__wrlock__done_semaphore
279 #else
280 #define DRIZZLE_CURSOR_WRLOCK_DONE_ENABLED() __builtin_expect (drizzle_cursor__wrlock__done_semaphore, 0)
281 #endif
282 __extension__ extern unsigned short drizzle_cursor__wrlock__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
283 #define DRIZZLE_CURSOR_WRLOCK_DONE(arg1) \
284 DTRACE_PROBE1(drizzle,cursor__wrlock__done,arg1)
285 
286 /* DRIZZLE_CURSOR_UNLOCK_DONE ( int status) */
287 #if defined STAP_SDT_V1
288 #define DRIZZLE_CURSOR_UNLOCK_DONE_ENABLED() __builtin_expect (cursor__unlock__done_semaphore, 0)
289 #define drizzle_cursor__unlock__done_semaphore cursor__unlock__done_semaphore
290 #else
291 #define DRIZZLE_CURSOR_UNLOCK_DONE_ENABLED() __builtin_expect (drizzle_cursor__unlock__done_semaphore, 0)
292 #endif
293 __extension__ extern unsigned short drizzle_cursor__unlock__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
294 #define DRIZZLE_CURSOR_UNLOCK_DONE(arg1) \
295 DTRACE_PROBE1(drizzle,cursor__unlock__done,arg1)
296 
297 /* DRIZZLE_FILESORT_START ( const char *db, const char *table) */
298 #if defined STAP_SDT_V1
299 #define DRIZZLE_FILESORT_START_ENABLED() __builtin_expect (filesort__start_semaphore, 0)
300 #define drizzle_filesort__start_semaphore filesort__start_semaphore
301 #else
302 #define DRIZZLE_FILESORT_START_ENABLED() __builtin_expect (drizzle_filesort__start_semaphore, 0)
303 #endif
304 __extension__ extern unsigned short drizzle_filesort__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
305 #define DRIZZLE_FILESORT_START(arg1,arg2) \
306 DTRACE_PROBE2(drizzle,filesort__start,arg1,arg2)
307 
308 /* DRIZZLE_FILESORT_DONE ( int status, unsigned long rows) */
309 #if defined STAP_SDT_V1
310 #define DRIZZLE_FILESORT_DONE_ENABLED() __builtin_expect (filesort__done_semaphore, 0)
311 #define drizzle_filesort__done_semaphore filesort__done_semaphore
312 #else
313 #define DRIZZLE_FILESORT_DONE_ENABLED() __builtin_expect (drizzle_filesort__done_semaphore, 0)
314 #endif
315 __extension__ extern unsigned short drizzle_filesort__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
316 #define DRIZZLE_FILESORT_DONE(arg1,arg2) \
317 DTRACE_PROBE2(drizzle,filesort__done,arg1,arg2)
318 
319 /* DRIZZLE_SELECT_START ( const char *query) */
320 #if defined STAP_SDT_V1
321 #define DRIZZLE_SELECT_START_ENABLED() __builtin_expect (select__start_semaphore, 0)
322 #define drizzle_select__start_semaphore select__start_semaphore
323 #else
324 #define DRIZZLE_SELECT_START_ENABLED() __builtin_expect (drizzle_select__start_semaphore, 0)
325 #endif
326 __extension__ extern unsigned short drizzle_select__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
327 #define DRIZZLE_SELECT_START(arg1) \
328 DTRACE_PROBE1(drizzle,select__start,arg1)
329 
330 /* DRIZZLE_SELECT_DONE ( int status, unsigned long rows) */
331 #if defined STAP_SDT_V1
332 #define DRIZZLE_SELECT_DONE_ENABLED() __builtin_expect (select__done_semaphore, 0)
333 #define drizzle_select__done_semaphore select__done_semaphore
334 #else
335 #define DRIZZLE_SELECT_DONE_ENABLED() __builtin_expect (drizzle_select__done_semaphore, 0)
336 #endif
337 __extension__ extern unsigned short drizzle_select__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
338 #define DRIZZLE_SELECT_DONE(arg1,arg2) \
339 DTRACE_PROBE2(drizzle,select__done,arg1,arg2)
340 
341 /* DRIZZLE_INSERT_START ( const char *query) */
342 #if defined STAP_SDT_V1
343 #define DRIZZLE_INSERT_START_ENABLED() __builtin_expect (insert__start_semaphore, 0)
344 #define drizzle_insert__start_semaphore insert__start_semaphore
345 #else
346 #define DRIZZLE_INSERT_START_ENABLED() __builtin_expect (drizzle_insert__start_semaphore, 0)
347 #endif
348 __extension__ extern unsigned short drizzle_insert__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
349 #define DRIZZLE_INSERT_START(arg1) \
350 DTRACE_PROBE1(drizzle,insert__start,arg1)
351 
352 /* DRIZZLE_INSERT_DONE ( int status, unsigned long rows) */
353 #if defined STAP_SDT_V1
354 #define DRIZZLE_INSERT_DONE_ENABLED() __builtin_expect (insert__done_semaphore, 0)
355 #define drizzle_insert__done_semaphore insert__done_semaphore
356 #else
357 #define DRIZZLE_INSERT_DONE_ENABLED() __builtin_expect (drizzle_insert__done_semaphore, 0)
358 #endif
359 __extension__ extern unsigned short drizzle_insert__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
360 #define DRIZZLE_INSERT_DONE(arg1,arg2) \
361 DTRACE_PROBE2(drizzle,insert__done,arg1,arg2)
362 
363 /* DRIZZLE_INSERT_SELECT_START ( const char *query) */
364 #if defined STAP_SDT_V1
365 #define DRIZZLE_INSERT_SELECT_START_ENABLED() __builtin_expect (insert__select__start_semaphore, 0)
366 #define drizzle_insert__select__start_semaphore insert__select__start_semaphore
367 #else
368 #define DRIZZLE_INSERT_SELECT_START_ENABLED() __builtin_expect (drizzle_insert__select__start_semaphore, 0)
369 #endif
370 __extension__ extern unsigned short drizzle_insert__select__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
371 #define DRIZZLE_INSERT_SELECT_START(arg1) \
372 DTRACE_PROBE1(drizzle,insert__select__start,arg1)
373 
374 /* DRIZZLE_INSERT_SELECT_DONE ( int status, unsigned long rows) */
375 #if defined STAP_SDT_V1
376 #define DRIZZLE_INSERT_SELECT_DONE_ENABLED() __builtin_expect (insert__select__done_semaphore, 0)
377 #define drizzle_insert__select__done_semaphore insert__select__done_semaphore
378 #else
379 #define DRIZZLE_INSERT_SELECT_DONE_ENABLED() __builtin_expect (drizzle_insert__select__done_semaphore, 0)
380 #endif
381 __extension__ extern unsigned short drizzle_insert__select__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
382 #define DRIZZLE_INSERT_SELECT_DONE(arg1,arg2) \
383 DTRACE_PROBE2(drizzle,insert__select__done,arg1,arg2)
384 
385 /* DRIZZLE_UPDATE_START ( const char *query) */
386 #if defined STAP_SDT_V1
387 #define DRIZZLE_UPDATE_START_ENABLED() __builtin_expect (update__start_semaphore, 0)
388 #define drizzle_update__start_semaphore update__start_semaphore
389 #else
390 #define DRIZZLE_UPDATE_START_ENABLED() __builtin_expect (drizzle_update__start_semaphore, 0)
391 #endif
392 __extension__ extern unsigned short drizzle_update__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
393 #define DRIZZLE_UPDATE_START(arg1) \
394 DTRACE_PROBE1(drizzle,update__start,arg1)
395 
396 /* DRIZZLE_UPDATE_DONE ( int status, unsigned long rowsmatches, unsigned long rowschanged) */
397 #if defined STAP_SDT_V1
398 #define DRIZZLE_UPDATE_DONE_ENABLED() __builtin_expect (update__done_semaphore, 0)
399 #define drizzle_update__done_semaphore update__done_semaphore
400 #else
401 #define DRIZZLE_UPDATE_DONE_ENABLED() __builtin_expect (drizzle_update__done_semaphore, 0)
402 #endif
403 __extension__ extern unsigned short drizzle_update__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
404 #define DRIZZLE_UPDATE_DONE(arg1,arg2,arg3) \
405 DTRACE_PROBE3(drizzle,update__done,arg1,arg2,arg3)
406 
407 /* DRIZZLE_DELETE_START ( const char *query) */
408 #if defined STAP_SDT_V1
409 #define DRIZZLE_DELETE_START_ENABLED() __builtin_expect (delete__start_semaphore, 0)
410 #define drizzle_delete__start_semaphore delete__start_semaphore
411 #else
412 #define DRIZZLE_DELETE_START_ENABLED() __builtin_expect (drizzle_delete__start_semaphore, 0)
413 #endif
414 __extension__ extern unsigned short drizzle_delete__start_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
415 #define DRIZZLE_DELETE_START(arg1) \
416 DTRACE_PROBE1(drizzle,delete__start,arg1)
417 
418 /* DRIZZLE_DELETE_DONE ( int status, unsigned long rows) */
419 #if defined STAP_SDT_V1
420 #define DRIZZLE_DELETE_DONE_ENABLED() __builtin_expect (delete__done_semaphore, 0)
421 #define drizzle_delete__done_semaphore delete__done_semaphore
422 #else
423 #define DRIZZLE_DELETE_DONE_ENABLED() __builtin_expect (drizzle_delete__done_semaphore, 0)
424 #endif
425 __extension__ extern unsigned short drizzle_delete__done_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes")));
426 #define DRIZZLE_DELETE_DONE(arg1,arg2) \
427 DTRACE_PROBE2(drizzle,delete__done,arg1,arg2)
428