~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
/*
 * Generated by dtrace(1M).
 */

#ifndef	_PROBES_H
#define	_PROBES_H

#include <unistd.h>

#ifdef	__cplusplus
extern "C" {
#endif

#if _DTRACE_VERSION

#define	DRIZZLE_DELETE_END() \
	__dtrace_drizzle___delete_end()
#ifndef	__sparc
#define	DRIZZLE_DELETE_END_ENABLED() \
	__dtraceenabled_drizzle___delete_end()
#else
#define	DRIZZLE_DELETE_END_ENABLED() \
	__dtraceenabled_drizzle___delete_end(0)
#endif
#define	DRIZZLE_DELETE_START() \
	__dtrace_drizzle___delete_start()
#ifndef	__sparc
#define	DRIZZLE_DELETE_START_ENABLED() \
	__dtraceenabled_drizzle___delete_start()
#else
#define	DRIZZLE_DELETE_START_ENABLED() \
	__dtraceenabled_drizzle___delete_start(0)
#endif
#define	DRIZZLE_EXTERNAL_LOCK(arg0) \
	__dtrace_drizzle___external_lock(arg0)
#ifndef	__sparc
#define	DRIZZLE_EXTERNAL_LOCK_ENABLED() \
	__dtraceenabled_drizzle___external_lock()
#else
#define	DRIZZLE_EXTERNAL_LOCK_ENABLED() \
	__dtraceenabled_drizzle___external_lock(0)
#endif
#define	DRIZZLE_FILESORT_END() \
	__dtrace_drizzle___filesort_end()
#ifndef	__sparc
#define	DRIZZLE_FILESORT_END_ENABLED() \
	__dtraceenabled_drizzle___filesort_end()
#else
#define	DRIZZLE_FILESORT_END_ENABLED() \
	__dtraceenabled_drizzle___filesort_end(0)
#endif
#define	DRIZZLE_FILESORT_START() \
	__dtrace_drizzle___filesort_start()
#ifndef	__sparc
#define	DRIZZLE_FILESORT_START_ENABLED() \
	__dtraceenabled_drizzle___filesort_start()
#else
#define	DRIZZLE_FILESORT_START_ENABLED() \
	__dtraceenabled_drizzle___filesort_start(0)
#endif
#define	DRIZZLE_INSERT_END() \
	__dtrace_drizzle___insert_end()
#ifndef	__sparc
#define	DRIZZLE_INSERT_END_ENABLED() \
	__dtraceenabled_drizzle___insert_end()
#else
#define	DRIZZLE_INSERT_END_ENABLED() \
	__dtraceenabled_drizzle___insert_end(0)
#endif
#define	DRIZZLE_INSERT_ROW_END() \
	__dtrace_drizzle___insert_row_end()
#ifndef	__sparc
#define	DRIZZLE_INSERT_ROW_END_ENABLED() \
	__dtraceenabled_drizzle___insert_row_end()
#else
#define	DRIZZLE_INSERT_ROW_END_ENABLED() \
	__dtraceenabled_drizzle___insert_row_end(0)
#endif
#define	DRIZZLE_INSERT_ROW_START() \
	__dtrace_drizzle___insert_row_start()
#ifndef	__sparc
#define	DRIZZLE_INSERT_ROW_START_ENABLED() \
	__dtraceenabled_drizzle___insert_row_start()
#else
#define	DRIZZLE_INSERT_ROW_START_ENABLED() \
	__dtraceenabled_drizzle___insert_row_start(0)
#endif
#define	DRIZZLE_INSERT_START() \
	__dtrace_drizzle___insert_start()
#ifndef	__sparc
#define	DRIZZLE_INSERT_START_ENABLED() \
	__dtraceenabled_drizzle___insert_start()
#else
#define	DRIZZLE_INSERT_START_ENABLED() \
	__dtraceenabled_drizzle___insert_start(0)
#endif
#define	DRIZZLE_SELECT_END() \
	__dtrace_drizzle___select_end()
#ifndef	__sparc
#define	DRIZZLE_SELECT_END_ENABLED() \
	__dtraceenabled_drizzle___select_end()
#else
#define	DRIZZLE_SELECT_END_ENABLED() \
	__dtraceenabled_drizzle___select_end(0)
#endif
#define	DRIZZLE_SELECT_START() \
	__dtrace_drizzle___select_start()
#ifndef	__sparc
#define	DRIZZLE_SELECT_START_ENABLED() \
	__dtraceenabled_drizzle___select_start()
#else
#define	DRIZZLE_SELECT_START_ENABLED() \
	__dtraceenabled_drizzle___select_start(0)
#endif
#define	DRIZZLE_UPDATE_END() \
	__dtrace_drizzle___update_end()
#ifndef	__sparc
#define	DRIZZLE_UPDATE_END_ENABLED() \
	__dtraceenabled_drizzle___update_end()
#else
#define	DRIZZLE_UPDATE_END_ENABLED() \
	__dtraceenabled_drizzle___update_end(0)
#endif
#define	DRIZZLE_UPDATE_START() \
	__dtrace_drizzle___update_start()
#ifndef	__sparc
#define	DRIZZLE_UPDATE_START_ENABLED() \
	__dtraceenabled_drizzle___update_start()
#else
#define	DRIZZLE_UPDATE_START_ENABLED() \
	__dtraceenabled_drizzle___update_start(0)
#endif


extern void __dtrace_drizzle___delete_end(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___delete_end(void);
#else
extern int __dtraceenabled_drizzle___delete_end(long);
#endif
extern void __dtrace_drizzle___delete_start(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___delete_start(void);
#else
extern int __dtraceenabled_drizzle___delete_start(long);
#endif
extern void __dtrace_drizzle___external_lock(int);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___external_lock(void);
#else
extern int __dtraceenabled_drizzle___external_lock(long);
#endif
extern void __dtrace_drizzle___filesort_end(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___filesort_end(void);
#else
extern int __dtraceenabled_drizzle___filesort_end(long);
#endif
extern void __dtrace_drizzle___filesort_start(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___filesort_start(void);
#else
extern int __dtraceenabled_drizzle___filesort_start(long);
#endif
extern void __dtrace_drizzle___insert_end(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___insert_end(void);
#else
extern int __dtraceenabled_drizzle___insert_end(long);
#endif
extern void __dtrace_drizzle___insert_row_end(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___insert_row_end(void);
#else
extern int __dtraceenabled_drizzle___insert_row_end(long);
#endif
extern void __dtrace_drizzle___insert_row_start(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___insert_row_start(void);
#else
extern int __dtraceenabled_drizzle___insert_row_start(long);
#endif
extern void __dtrace_drizzle___insert_start(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___insert_start(void);
#else
extern int __dtraceenabled_drizzle___insert_start(long);
#endif
extern void __dtrace_drizzle___select_end(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___select_end(void);
#else
extern int __dtraceenabled_drizzle___select_end(long);
#endif
extern void __dtrace_drizzle___select_start(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___select_start(void);
#else
extern int __dtraceenabled_drizzle___select_start(long);
#endif
extern void __dtrace_drizzle___update_end(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___update_end(void);
#else
extern int __dtraceenabled_drizzle___update_end(long);
#endif
extern void __dtrace_drizzle___update_start(void);
#ifndef	__sparc
extern int __dtraceenabled_drizzle___update_start(void);
#else
extern int __dtraceenabled_drizzle___update_start(long);
#endif

#else

#define	DRIZZLE_DELETE_END()
#define	DRIZZLE_DELETE_END_ENABLED() (0)
#define	DRIZZLE_DELETE_START()
#define	DRIZZLE_DELETE_START_ENABLED() (0)
#define	DRIZZLE_EXTERNAL_LOCK(arg0)
#define	DRIZZLE_EXTERNAL_LOCK_ENABLED() (0)
#define	DRIZZLE_FILESORT_END()
#define	DRIZZLE_FILESORT_END_ENABLED() (0)
#define	DRIZZLE_FILESORT_START()
#define	DRIZZLE_FILESORT_START_ENABLED() (0)
#define	DRIZZLE_INSERT_END()
#define	DRIZZLE_INSERT_END_ENABLED() (0)
#define	DRIZZLE_INSERT_ROW_END()
#define	DRIZZLE_INSERT_ROW_END_ENABLED() (0)
#define	DRIZZLE_INSERT_ROW_START()
#define	DRIZZLE_INSERT_ROW_START_ENABLED() (0)
#define	DRIZZLE_INSERT_START()
#define	DRIZZLE_INSERT_START_ENABLED() (0)
#define	DRIZZLE_SELECT_END()
#define	DRIZZLE_SELECT_END_ENABLED() (0)
#define	DRIZZLE_SELECT_START()
#define	DRIZZLE_SELECT_START_ENABLED() (0)
#define	DRIZZLE_UPDATE_END()
#define	DRIZZLE_UPDATE_END_ENABLED() (0)
#define	DRIZZLE_UPDATE_START()
#define	DRIZZLE_UPDATE_START_ENABLED() (0)

#endif


#ifdef	__cplusplus
}
#endif

#endif	/* _PROBES_H */