Print this page
dccp: connect
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/sys/sdt.h
+++ new/usr/src/uts/common/sys/sdt.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 */
24 24
25 25 #ifndef _SYS_SDT_H
26 26 #define _SYS_SDT_H
27 27
28 28 #ifdef __cplusplus
29 29 extern "C" {
30 30 #endif
31 31
32 32 #ifndef _KERNEL
33 33
34 34 #define DTRACE_PROBE(provider, name) { \
35 35 extern void __dtrace_##provider##___##name(void); \
36 36 __dtrace_##provider##___##name(); \
37 37 }
38 38
39 39 #define DTRACE_PROBE1(provider, name, arg1) { \
40 40 extern void __dtrace_##provider##___##name(unsigned long); \
41 41 __dtrace_##provider##___##name((unsigned long)arg1); \
42 42 }
43 43
44 44 #define DTRACE_PROBE2(provider, name, arg1, arg2) { \
45 45 extern void __dtrace_##provider##___##name(unsigned long, \
46 46 unsigned long); \
47 47 __dtrace_##provider##___##name((unsigned long)arg1, \
48 48 (unsigned long)arg2); \
49 49 }
50 50
51 51 #define DTRACE_PROBE3(provider, name, arg1, arg2, arg3) { \
52 52 extern void __dtrace_##provider##___##name(unsigned long, \
53 53 unsigned long, unsigned long); \
54 54 __dtrace_##provider##___##name((unsigned long)arg1, \
55 55 (unsigned long)arg2, (unsigned long)arg3); \
56 56 }
57 57
58 58 #define DTRACE_PROBE4(provider, name, arg1, arg2, arg3, arg4) { \
59 59 extern void __dtrace_##provider##___##name(unsigned long, \
60 60 unsigned long, unsigned long, unsigned long); \
61 61 __dtrace_##provider##___##name((unsigned long)arg1, \
62 62 (unsigned long)arg2, (unsigned long)arg3, \
63 63 (unsigned long)arg4); \
64 64 }
65 65
66 66 #define DTRACE_PROBE5(provider, name, arg1, arg2, arg3, arg4, arg5) { \
67 67 extern void __dtrace_##provider##___##name(unsigned long, \
68 68 unsigned long, unsigned long, unsigned long, unsigned long);\
69 69 __dtrace_##provider##___##name((unsigned long)arg1, \
70 70 (unsigned long)arg2, (unsigned long)arg3, \
71 71 (unsigned long)arg4, (unsigned long)arg5); \
72 72 }
73 73
74 74 #else /* _KERNEL */
75 75
76 76 #define DTRACE_PROBE(name) { \
77 77 extern void __dtrace_probe_##name(void); \
78 78 __dtrace_probe_##name(); \
79 79 }
80 80
81 81 #define DTRACE_PROBE1(name, type1, arg1) { \
82 82 extern void __dtrace_probe_##name(uintptr_t); \
83 83 __dtrace_probe_##name((uintptr_t)(arg1)); \
84 84 }
85 85
86 86 #define DTRACE_PROBE2(name, type1, arg1, type2, arg2) { \
87 87 extern void __dtrace_probe_##name(uintptr_t, uintptr_t); \
88 88 __dtrace_probe_##name((uintptr_t)(arg1), (uintptr_t)(arg2)); \
89 89 }
90 90
91 91 #define DTRACE_PROBE3(name, type1, arg1, type2, arg2, type3, arg3) { \
92 92 extern void __dtrace_probe_##name(uintptr_t, uintptr_t, uintptr_t); \
93 93 __dtrace_probe_##name((uintptr_t)(arg1), (uintptr_t)(arg2), \
94 94 (uintptr_t)(arg3)); \
95 95 }
96 96
97 97 #define DTRACE_PROBE4(name, type1, arg1, type2, arg2, \
98 98 type3, arg3, type4, arg4) { \
99 99 extern void __dtrace_probe_##name(uintptr_t, uintptr_t, \
100 100 uintptr_t, uintptr_t); \
101 101 __dtrace_probe_##name((uintptr_t)(arg1), (uintptr_t)(arg2), \
102 102 (uintptr_t)(arg3), (uintptr_t)(arg4)); \
103 103 }
104 104
105 105 #define DTRACE_PROBE5(name, type1, arg1, type2, arg2, \
106 106 type3, arg3, type4, arg4, type5, arg5) { \
107 107 extern void __dtrace_probe_##name(uintptr_t, uintptr_t, \
108 108 uintptr_t, uintptr_t, uintptr_t); \
109 109 __dtrace_probe_##name((uintptr_t)(arg1), (uintptr_t)(arg2), \
110 110 (uintptr_t)(arg3), (uintptr_t)(arg4), (uintptr_t)(arg5)); \
111 111 }
112 112
113 113 #define DTRACE_PROBE6(name, type1, arg1, type2, arg2, \
114 114 type3, arg3, type4, arg4, type5, arg5, type6, arg6) { \
115 115 extern void __dtrace_probe_##name(uintptr_t, uintptr_t, \
116 116 uintptr_t, uintptr_t, uintptr_t, uintptr_t); \
117 117 __dtrace_probe_##name((uintptr_t)(arg1), (uintptr_t)(arg2), \
118 118 (uintptr_t)(arg3), (uintptr_t)(arg4), (uintptr_t)(arg5), \
119 119 (uintptr_t)(arg6)); \
120 120 }
121 121
122 122 #define DTRACE_PROBE7(name, type1, arg1, type2, arg2, type3, arg3, \
123 123 type4, arg4, type5, arg5, type6, arg6, type7, arg7) { \
124 124 extern void __dtrace_probe_##name(uintptr_t, uintptr_t, \
125 125 uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t); \
126 126 __dtrace_probe_##name((uintptr_t)(arg1), (uintptr_t)(arg2), \
127 127 (uintptr_t)(arg3), (uintptr_t)(arg4), (uintptr_t)(arg5), \
128 128 (uintptr_t)(arg6), (uintptr_t)(arg7)); \
129 129 }
130 130
131 131 #define DTRACE_PROBE8(name, type1, arg1, type2, arg2, type3, arg3, \
132 132 type4, arg4, type5, arg5, type6, arg6, type7, arg7, type8, arg8) { \
133 133 extern void __dtrace_probe_##name(uintptr_t, uintptr_t, \
134 134 uintptr_t, uintptr_t, uintptr_t, uintptr_t, \
135 135 uintptr_t, uintptr_t); \
136 136 __dtrace_probe_##name((uintptr_t)(arg1), (uintptr_t)(arg2), \
137 137 (uintptr_t)(arg3), (uintptr_t)(arg4), (uintptr_t)(arg5), \
138 138 (uintptr_t)(arg6), (uintptr_t)(arg7), (uintptr_t)(arg8)); \
139 139 }
140 140
141 141 #define DTRACE_SCHED(name) \
142 142 DTRACE_PROBE(__sched_##name);
143 143
144 144 #define DTRACE_SCHED1(name, type1, arg1) \
145 145 DTRACE_PROBE1(__sched_##name, type1, arg1);
146 146
147 147 #define DTRACE_SCHED2(name, type1, arg1, type2, arg2) \
148 148 DTRACE_PROBE2(__sched_##name, type1, arg1, type2, arg2);
149 149
150 150 #define DTRACE_SCHED3(name, type1, arg1, type2, arg2, type3, arg3) \
151 151 DTRACE_PROBE3(__sched_##name, type1, arg1, type2, arg2, type3, arg3);
152 152
153 153 #define DTRACE_SCHED4(name, type1, arg1, type2, arg2, \
154 154 type3, arg3, type4, arg4) \
155 155 DTRACE_PROBE4(__sched_##name, type1, arg1, type2, arg2, \
156 156 type3, arg3, type4, arg4);
157 157
158 158 #define DTRACE_PROC(name) \
159 159 DTRACE_PROBE(__proc_##name);
160 160
161 161 #define DTRACE_PROC1(name, type1, arg1) \
162 162 DTRACE_PROBE1(__proc_##name, type1, arg1);
163 163
164 164 #define DTRACE_PROC2(name, type1, arg1, type2, arg2) \
165 165 DTRACE_PROBE2(__proc_##name, type1, arg1, type2, arg2);
166 166
167 167 #define DTRACE_PROC3(name, type1, arg1, type2, arg2, type3, arg3) \
168 168 DTRACE_PROBE3(__proc_##name, type1, arg1, type2, arg2, type3, arg3);
169 169
170 170 #define DTRACE_PROC4(name, type1, arg1, type2, arg2, \
171 171 type3, arg3, type4, arg4) \
172 172 DTRACE_PROBE4(__proc_##name, type1, arg1, type2, arg2, \
173 173 type3, arg3, type4, arg4);
174 174
175 175 #define DTRACE_IO(name) \
176 176 DTRACE_PROBE(__io_##name);
177 177
178 178 #define DTRACE_IO1(name, type1, arg1) \
179 179 DTRACE_PROBE1(__io_##name, type1, arg1);
180 180
181 181 #define DTRACE_IO2(name, type1, arg1, type2, arg2) \
182 182 DTRACE_PROBE2(__io_##name, type1, arg1, type2, arg2);
183 183
184 184 #define DTRACE_IO3(name, type1, arg1, type2, arg2, type3, arg3) \
185 185 DTRACE_PROBE3(__io_##name, type1, arg1, type2, arg2, type3, arg3);
186 186
187 187 #define DTRACE_IO4(name, type1, arg1, type2, arg2, \
188 188 type3, arg3, type4, arg4) \
189 189 DTRACE_PROBE4(__io_##name, type1, arg1, type2, arg2, \
190 190 type3, arg3, type4, arg4);
191 191
192 192 #define DTRACE_ISCSI_2(name, type1, arg1, type2, arg2) \
193 193 DTRACE_PROBE2(__iscsi_##name, type1, arg1, type2, arg2);
194 194
195 195 #define DTRACE_ISCSI_3(name, type1, arg1, type2, arg2, type3, arg3) \
196 196 DTRACE_PROBE3(__iscsi_##name, type1, arg1, type2, arg2, type3, arg3);
197 197
198 198 #define DTRACE_ISCSI_4(name, type1, arg1, type2, arg2, \
199 199 type3, arg3, type4, arg4) \
200 200 DTRACE_PROBE4(__iscsi_##name, type1, arg1, type2, arg2, \
201 201 type3, arg3, type4, arg4);
202 202
203 203 #define DTRACE_ISCSI_5(name, type1, arg1, type2, arg2, \
204 204 type3, arg3, type4, arg4, type5, arg5) \
205 205 DTRACE_PROBE5(__iscsi_##name, type1, arg1, type2, arg2, \
206 206 type3, arg3, type4, arg4, type5, arg5);
207 207
208 208 #define DTRACE_ISCSI_6(name, type1, arg1, type2, arg2, \
209 209 type3, arg3, type4, arg4, type5, arg5, type6, arg6) \
210 210 DTRACE_PROBE6(__iscsi_##name, type1, arg1, type2, arg2, \
211 211 type3, arg3, type4, arg4, type5, arg5, type6, arg6);
212 212
213 213 #define DTRACE_ISCSI_7(name, type1, arg1, type2, arg2, \
214 214 type3, arg3, type4, arg4, type5, arg5, type6, arg6, type7, arg7) \
215 215 DTRACE_PROBE7(__iscsi_##name, type1, arg1, type2, arg2, \
216 216 type3, arg3, type4, arg4, type5, arg5, type6, arg6, \
217 217 type7, arg7);
218 218
219 219 #define DTRACE_ISCSI_8(name, type1, arg1, type2, arg2, \
220 220 type3, arg3, type4, arg4, type5, arg5, type6, arg6, \
221 221 type7, arg7, type8, arg8) \
222 222 DTRACE_PROBE8(__iscsi_##name, type1, arg1, type2, arg2, \
223 223 type3, arg3, type4, arg4, type5, arg5, type6, arg6, \
224 224 type7, arg7, type8, arg8);
225 225
226 226 #define DTRACE_NFSV3_3(name, type1, arg1, type2, arg2, \
227 227 type3, arg3) \
228 228 DTRACE_PROBE3(__nfsv3_##name, type1, arg1, type2, arg2, \
229 229 type3, arg3);
230 230 #define DTRACE_NFSV3_4(name, type1, arg1, type2, arg2, \
231 231 type3, arg3, type4, arg4) \
232 232 DTRACE_PROBE4(__nfsv3_##name, type1, arg1, type2, arg2, \
233 233 type3, arg3, type4, arg4);
234 234
235 235 #define DTRACE_NFSV4_1(name, type1, arg1) \
236 236 DTRACE_PROBE1(__nfsv4_##name, type1, arg1);
237 237
238 238 #define DTRACE_NFSV4_2(name, type1, arg1, type2, arg2) \
239 239 DTRACE_PROBE2(__nfsv4_##name, type1, arg1, type2, arg2);
240 240
241 241 #define DTRACE_NFSV4_3(name, type1, arg1, type2, arg2, type3, arg3) \
242 242 DTRACE_PROBE3(__nfsv4_##name, type1, arg1, type2, arg2, type3, arg3);
243 243
244 244 #define DTRACE_SMB_1(name, type1, arg1) \
245 245 DTRACE_PROBE1(__smb_##name, type1, arg1);
246 246
247 247 #define DTRACE_SMB_2(name, type1, arg1, type2, arg2) \
248 248 DTRACE_PROBE2(__smb_##name, type1, arg1, type2, arg2);
249 249
250 250 #define DTRACE_IP(name) \
251 251 DTRACE_PROBE(__ip_##name);
252 252
253 253 #define DTRACE_IP1(name, type1, arg1) \
254 254 DTRACE_PROBE1(__ip_##name, type1, arg1);
255 255
256 256 #define DTRACE_IP2(name, type1, arg1, type2, arg2) \
257 257 DTRACE_PROBE2(__ip_##name, type1, arg1, type2, arg2);
258 258
259 259 #define DTRACE_IP3(name, type1, arg1, type2, arg2, type3, arg3) \
260 260 DTRACE_PROBE3(__ip_##name, type1, arg1, type2, arg2, type3, arg3);
261 261
262 262 #define DTRACE_IP4(name, type1, arg1, type2, arg2, \
263 263 type3, arg3, type4, arg4) \
264 264 DTRACE_PROBE4(__ip_##name, type1, arg1, type2, arg2, \
265 265 type3, arg3, type4, arg4);
266 266
267 267 #define DTRACE_IP5(name, type1, arg1, type2, arg2, \
268 268 type3, arg3, type4, arg4, type5, arg5) \
269 269 DTRACE_PROBE5(__ip_##name, type1, arg1, type2, arg2, \
270 270 type3, arg3, type4, arg4, type5, arg5);
271 271
272 272 #define DTRACE_IP6(name, type1, arg1, type2, arg2, \
273 273 type3, arg3, type4, arg4, type5, arg5, type6, arg6) \
274 274 DTRACE_PROBE6(__ip_##name, type1, arg1, type2, arg2, \
275 275 type3, arg3, type4, arg4, type5, arg5, type6, arg6);
276 276
277 277 #define DTRACE_IP7(name, type1, arg1, type2, arg2, type3, arg3, \
278 278 type4, arg4, type5, arg5, type6, arg6, type7, arg7) \
279 279 DTRACE_PROBE7(__ip_##name, type1, arg1, type2, arg2, \
280 280 type3, arg3, type4, arg4, type5, arg5, type6, arg6, \
281 281 type7, arg7);
282 282
283 283 #define DTRACE_TCP(name) \
284 284 DTRACE_PROBE(__tcp_##name);
285 285
286 286 #define DTRACE_TCP1(name, type1, arg1) \
287 287 DTRACE_PROBE1(__tcp_##name, type1, arg1);
288 288
289 289 #define DTRACE_TCP2(name, type1, arg1, type2, arg2) \
290 290 DTRACE_PROBE2(__tcp_##name, type1, arg1, type2, arg2);
291 291
292 292 #define DTRACE_TCP3(name, type1, arg1, type2, arg2, type3, arg3) \
293 293 DTRACE_PROBE3(__tcp_##name, type1, arg1, type2, arg2, type3, arg3);
294 294
295 295 #define DTRACE_TCP4(name, type1, arg1, type2, arg2, \
296 296 type3, arg3, type4, arg4) \
297 297 DTRACE_PROBE4(__tcp_##name, type1, arg1, type2, arg2, \
298 298 type3, arg3, type4, arg4);
299 299
300 300 #define DTRACE_TCP5(name, type1, arg1, type2, arg2, \
301 301 type3, arg3, type4, arg4, type5, arg5) \
302 302 DTRACE_PROBE5(__tcp_##name, type1, arg1, type2, arg2, \
303 303 type3, arg3, type4, arg4, type5, arg5);
304 304
305 305 #define DTRACE_TCP6(name, type1, arg1, type2, arg2, \
306 306 type3, arg3, type4, arg4, type5, arg5, type6, arg6) \
307 307 DTRACE_PROBE6(__tcp_##name, type1, arg1, type2, arg2, \
308 308 type3, arg3, type4, arg4, type5, arg5, type6, arg6);
309 309
310 310 #define DTRACE_UDP(name) \
311 311 DTRACE_PROBE(__udp_##name);
312 312
313 313 #define DTRACE_UDP1(name, type1, arg1) \
314 314 DTRACE_PROBE1(__udp_##name, type1, arg1);
315 315
316 316 #define DTRACE_UDP2(name, type1, arg1, type2, arg2) \
317 317 DTRACE_PROBE2(__udp_##name, type1, arg1, type2, arg2);
318 318
319 319 #define DTRACE_UDP3(name, type1, arg1, type2, arg2, type3, arg3) \
320 320 DTRACE_PROBE3(__udp_##name, type1, arg1, type2, arg2, type3, arg3);
321 321
↓ open down ↓ |
321 lines elided |
↑ open up ↑ |
322 322 #define DTRACE_UDP4(name, type1, arg1, type2, arg2, \
323 323 type3, arg3, type4, arg4) \
324 324 DTRACE_PROBE4(__udp_##name, type1, arg1, type2, arg2, \
325 325 type3, arg3, type4, arg4);
326 326
327 327 #define DTRACE_UDP5(name, type1, arg1, type2, arg2, \
328 328 type3, arg3, type4, arg4, type5, arg5) \
329 329 DTRACE_PROBE5(__udp_##name, type1, arg1, type2, arg2, \
330 330 type3, arg3, type4, arg4, type5, arg5);
331 331
332 +#define DTRACE_DCCP(name) \
333 + DTRACE_PROBE(__dccp_##name);
334 +
335 +#define DTRACE_DCCP1(name, type1, arg1) \
336 + DTRACE_PROBE1(__dccp_##name, type1, arg1);
337 +
338 +#define DTRACE_DCCP2(name, type1, arg1, type2, arg2) \
339 + DTRACE_PROBE2(__dccp_##name, type1, arg1, type2, arg2);
340 +
341 +#define DTRACE_DCCP3(name, type1, arg1, type2, arg2, type3, arg3) \
342 + DTRACE_PROBE3(__dccp_##name, type1, arg1, type2, arg2, type3, arg3);
343 +
344 +#define DTRACE_DCCP4(name, type1, arg1, type2, arg2, \
345 + type3, arg3, type4, arg4) \
346 + DTRACE_PROBE4(__dccp_##name, type1, arg1, type2, arg2, \
347 + type3, arg3, type4, arg4);
348 +
349 +#define DTRACE_DCCP5(name, type1, arg1, type2, arg2, \
350 + type3, arg3, type4, arg4, type5, arg5) \
351 + DTRACE_PROBE5(__dccp_##name, type1, arg1, type2, arg2, \
352 + type3, arg3, type4, arg4, type5, arg5);
353 +
354 +#define DTRACE_DCCP6(name, type1, arg1, type2, arg2, \
355 + type3, arg3, type4, arg4, type5, arg5, type6, arg6) \
356 + DTRACE_PROBE6(__dccp_##name, type1, arg1, type2, arg2, \
357 + type3, arg3, type4, arg4, type5, arg5, type6, arg6);
358 +
332 359
333 360 #define DTRACE_SYSEVENT2(name, type1, arg1, type2, arg2) \
334 361 DTRACE_PROBE2(__sysevent_##name, type1, arg1, type2, arg2);
335 362
336 363 #define DTRACE_XPV(name) \
337 364 DTRACE_PROBE(__xpv_##name);
338 365
339 366 #define DTRACE_XPV1(name, type1, arg1) \
340 367 DTRACE_PROBE1(__xpv_##name, type1, arg1);
341 368
342 369 #define DTRACE_XPV2(name, type1, arg1, type2, arg2) \
343 370 DTRACE_PROBE2(__xpv_##name, type1, arg1, type2, arg2);
344 371
345 372 #define DTRACE_XPV3(name, type1, arg1, type2, arg2, type3, arg3) \
346 373 DTRACE_PROBE3(__xpv_##name, type1, arg1, type2, arg2, type3, arg3);
347 374
348 375 #define DTRACE_XPV4(name, type1, arg1, type2, arg2, type3, arg3, \
349 376 type4, arg4) \
350 377 DTRACE_PROBE4(__xpv_##name, type1, arg1, type2, arg2, \
351 378 type3, arg3, type4, arg4);
352 379
353 380 #define DTRACE_FC_1(name, type1, arg1) \
354 381 DTRACE_PROBE1(__fc_##name, type1, arg1);
355 382
356 383 #define DTRACE_FC_2(name, type1, arg1, type2, arg2) \
357 384 DTRACE_PROBE2(__fc_##name, type1, arg1, type2, arg2);
358 385
359 386 #define DTRACE_FC_3(name, type1, arg1, type2, arg2, type3, arg3) \
360 387 DTRACE_PROBE3(__fc_##name, type1, arg1, type2, arg2, type3, arg3);
361 388
362 389 #define DTRACE_FC_4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) \
363 390 DTRACE_PROBE4(__fc_##name, type1, arg1, type2, arg2, type3, arg3, \
364 391 type4, arg4);
365 392
366 393 #define DTRACE_FC_5(name, type1, arg1, type2, arg2, type3, arg3, \
367 394 type4, arg4, type5, arg5) \
368 395 DTRACE_PROBE5(__fc_##name, type1, arg1, type2, arg2, type3, arg3, \
369 396 type4, arg4, type5, arg5);
370 397
371 398 #define DTRACE_SRP_1(name, type1, arg1) \
372 399 DTRACE_PROBE1(__srp_##name, type1, arg1);
373 400
374 401 #define DTRACE_SRP_2(name, type1, arg1, type2, arg2) \
375 402 DTRACE_PROBE2(__srp_##name, type1, arg1, type2, arg2);
376 403
377 404 #define DTRACE_SRP_3(name, type1, arg1, type2, arg2, type3, arg3) \
378 405 DTRACE_PROBE3(__srp_##name, type1, arg1, type2, arg2, type3, arg3);
379 406
380 407 #define DTRACE_SRP_4(name, type1, arg1, type2, arg2, type3, arg3, \
381 408 type4, arg4) \
382 409 DTRACE_PROBE4(__srp_##name, type1, arg1, type2, arg2, \
383 410 type3, arg3, type4, arg4);
384 411
385 412 #define DTRACE_SRP_5(name, type1, arg1, type2, arg2, type3, arg3, \
386 413 type4, arg4, type5, arg5) \
387 414 DTRACE_PROBE5(__srp_##name, type1, arg1, type2, arg2, \
388 415 type3, arg3, type4, arg4, type5, arg5);
389 416
390 417 #define DTRACE_SRP_6(name, type1, arg1, type2, arg2, type3, arg3, \
391 418 type4, arg4, type5, arg5, type6, arg6) \
392 419 DTRACE_PROBE6(__srp_##name, type1, arg1, type2, arg2, \
393 420 type3, arg3, type4, arg4, type5, arg5, type6, arg6);
394 421
395 422 #define DTRACE_SRP_7(name, type1, arg1, type2, arg2, type3, arg3, \
396 423 type4, arg4, type5, arg5, type6, arg6, type7, arg7) \
397 424 DTRACE_PROBE7(__srp_##name, type1, arg1, type2, arg2, \
398 425 type3, arg3, type4, arg4, type5, arg5, type6, arg6, type7, arg7);
399 426
400 427 #define DTRACE_SRP_8(name, type1, arg1, type2, arg2, type3, arg3, \
401 428 type4, arg4, type5, arg5, type6, arg6, type7, arg7, type8, arg8) \
402 429 DTRACE_PROBE8(__srp_##name, type1, arg1, type2, arg2, \
403 430 type3, arg3, type4, arg4, type5, arg5, type6, arg6, \
404 431 type7, arg7, type8, arg8);
405 432
406 433 #endif /* _KERNEL */
407 434
408 435 extern const char *sdt_prefix;
409 436
410 437 typedef struct sdt_probedesc {
411 438 char *sdpd_name; /* name of this probe */
412 439 unsigned long sdpd_offset; /* offset of call in text */
413 440 struct sdt_probedesc *sdpd_next; /* next static probe */
414 441 } sdt_probedesc_t;
415 442
416 443 #ifdef __cplusplus
417 444 }
418 445 #endif
419 446
420 447 #endif /* _SYS_SDT_H */
↓ open down ↓ |
79 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX