Drizzled Public API Documentation

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