8446 uts: pci_check_bios() should check for BIOS
[unleashed.git] / include / sys / vtrace.h
blobce6b7e29966986eb0b0c16d8a43d7a771eee4d5a
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
31 * Portions of this source code were derived from Berkeley 4.3 BSD
32 * under license from the Regents of the University of California.
35 #ifndef _SYS_VTRACE_H
36 #define _SYS_VTRACE_H
38 #ifndef _ASM
39 #include <sys/types.h>
40 #include <sys/time.h>
41 #ifdef _KERNEL
42 #include <sys/cpuvar.h>
43 #endif /* _KERNEL */
44 #endif /* _ASM */
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
51 * vtrace is a legacy tracing framework that has been subsumed by the DTrace
52 * framework. To allow tracing of legacy vtrace points, the points themselves
53 * have been retained, and are provided to DTrace via the "vtrace" DTrace
54 * provider (which is itself implemented in terms of the statically defined
55 * tracing provider). Provided in this header file are the facility
56 * definitions currently in use, along with the specific tracing codes still
57 * in use. They are here purely for understanding extant vtrace points; the
58 * constants should not be changed, and should not be added to. (And any all
59 * new tracing points should be implemented in terms of DTRACE_PROBE() and
60 * friends.)
62 #define TR_FAC_TRAP 2 /* traps */
63 #define TR_FAC_INTR 3 /* interrupts */
64 #define TR_FAC_DISP 5 /* dispatcher */
65 #define TR_FAC_VM 6 /* VM system */
66 #define TR_FAC_PROC 7 /* process subsystem */
67 #define TR_FAC_STREAMS_FR 11 /* STREAMS framework */
68 #define TR_FAC_TCP 14 /* tcp protocol module */
69 #define TR_FAC_UDP 15 /* udp protocol module */
70 #define TR_FAC_IP 16 /* ip protocol module */
71 #define TR_FAC_ARP 17 /* arp protocol module */
72 #define TR_FAC_LE 18 /* lance ethernet driver */
73 #define TR_FAC_SCSI 21 /* SCSI */
74 #define TR_FAC_CALLOUT 24 /* callout table */
75 #define TR_FAC_SPECFS 29 /* specfs fileystem */
76 #define TR_FAC_SWAPFS 30 /* swapfs fileystem */
77 #define TR_FAC_TMPFS 31 /* tmpfs fileystem */
78 #define TR_FAC_UFS 32 /* UFS */
79 #define TR_FAC_NFS 33 /* NFS */
80 #define TR_FAC_KRPC 36 /* Kernel RPC */
81 #define TR_FAC_SCHED 37 /* swapper */
82 #define TR_FAC_SCSI_RES 38 /* SCSI_RESOURCE */
83 #define TR_FAC_SCSI_ISP 39 /* ISP HBA Driver SCSI */
84 #define TR_FAC_IA 40 /* IA scheduling class */
85 #define TR_FAC_BE 43 /* Fast Ethernet driver */
86 #define TR_FAC_FIFO 44 /* Fifos */
87 #define TR_FAC_RLOGINP 45 /* rlmod protocol module */
88 #define TR_FAC_PHYSIO 47 /* physio */
89 #define TR_FAC_META 48 /* meta disk */
90 #define TR_FAC_SCSI_FAS 49 /* fas scsi HBA driver */
91 #define TR_FAC_SOCKFS 50 /* socket fileystem */
92 #define TR_FAC_DEVMAP 51 /* devmap */
93 #define TR_FAC_DADA 52 /* target driver for ide */
96 * TR_FAC_TRAP tags
99 #define TR_TRAP_END 1
100 #define TR_C_TRAP_HANDLER_ENTER 6
101 #define TR_C_TRAP_HANDLER_EXIT 7
104 * TR_FAC_INTR tags
107 #define TR_INTR_PASSIVATE 3
110 * TR_FAC_DISP tags
113 #define TR_DISP_START 0
114 #define TR_DISP_END 1
115 #define TR_SWTCH_START 2
116 #define TR_SWTCH_END 3
117 #define TR_PREEMPT_START 4
118 #define TR_PREEMPT_END 5
119 #define TR_RESUME_START 6
120 #define TR_FRONTQ 8
121 #define TR_BACKQ 9
122 #define TR_CPU_RESCHED 10
123 #define TR_SLEEP 11
124 #define TR_TRAPRET 12
125 #define TR_TICK 13
126 #define TR_UPDATE 14
127 #define TR_CPU_SURRENDER 16
128 #define TR_PREEMPT 17
132 * TR_FAC_VM tags
135 #define TR_PAGE_INIT 0
136 #define TR_PAGE_WS_IN 1
137 #define TR_PAGE_WS_OUT 2
138 #define TR_PAGE_WS_FREE 3
139 #define TR_PAGEOUT_START 5
140 #define TR_PAGEOUT_END 6
141 #define TR_PAGEOUT_HAND_WRAP 7
142 #define TR_PAGEOUT_ISREF 9
143 #define TR_PAGEOUT_FREE 10
144 #define TR_PAGEOUT_CV_SIGNAL 11
145 #define TR_SEGMAP_FAULT 20
146 #define TR_SEGMAP_GETMAP 21
147 #define TR_SEGMAP_RELMAP 22
148 #define TR_SEGMAP_PAGECREATE 23
149 #define TR_SEGMAP_GETPAGE 24
150 #define TR_SEGVN_FAULT 25
151 #define TR_SEGVN_GETPAGE 26
152 #define TR_ANON_GETPAGE 27
153 #define TR_ANON_PRIVATE 28
154 #define TR_SWAP_ALLOC 30
155 #define TR_PVN_READ_KLUSTER 31
156 #define TR_PVN_GETDIRTY 32
157 #define TR_PAGE_CREATE_START 33
158 #define TR_PAGE_CREATE_TOOBIG 34
159 #define TR_PAGE_CREATE_NOMEM 35
160 #define TR_PAGE_CREATE_SUCCESS 36
161 #define TR_PAGE_CREATE_SLEEP_START 37
162 #define TR_PAGE_CREATE_SLEEP_END 38
163 #define TR_PAGE_FREE_FREE 40
164 #define TR_PAGE_FREE_CACHE_HEAD 41
165 #define TR_PAGE_FREE_CACHE_TAIL 42
166 #define TR_PAGE_UNFREE_FREE 43
167 #define TR_PAGE_UNFREE_CACHE 44
168 #define TR_PAGE_DESTROY 45
169 #define TR_PAGE_HASHIN 46
170 #define TR_PAGE_HASHOUT 47
171 #define TR_ANON_PROC 48
172 #define TR_ANON_SHM 49
173 #define TR_ANON_TMPFS 50
174 #define TR_ANON_SEGKP 53
175 #define TR_SAMPLE_WS_START 56
176 #define TR_SAMPLE_WS_END 57
177 #define TR_AS_INFO 59
178 #define TR_SEG_INFO 60
179 #define TR_PAGE_RENAME 61
182 * TR_FAC_PROC tags
185 #define TR_PROC_EXEC 0
186 #define TR_PROC_EXIT 1
187 #define TR_PROC_FORK 2
188 #define TR_EXECMAP_PREREAD 3
189 #define TR_EXECMAP_NO_PREREAD 4
192 * TR_FAC_SCHED tags
195 #define TR_SWAPIN 0
196 #define TR_SWAPOUT 1
197 #define TR_RUNIN 2
198 #define TR_RUNOUT 3
199 #define TR_CHOOSE_SWAPOUT 4
200 #define TR_CHOOSE_SWAPIN 5
201 #define TR_SOFTSWAP 6
202 #define TR_DESPERATE 8
203 #define TR_HIGH_DEFICIT 9
204 #define TR_SWAPIN_VALUES 10
205 #define TR_UNLOAD 11
206 #define TR_SWAPOUT_LWP 12
207 #define TR_SWAPQ_LWP 13
208 #define TR_SWAPQ_PROC 14
211 * TR_FAC_STREAMS_FR tags
214 #define TR_STRREAD_AWAKE 6
215 #define TR_STRRPUT_PROTERR 8
216 #define TR_I_PUSH 14
217 #define TR_I_POP 15
218 #define TR_STRSENDSIG 24
219 #define TR_QATTACH_FLAGS 25
220 #define TR_STRWAITQ_TIME 31
221 #define TR_STRWAITQ_WAIT2 32
222 #define TR_STRWAITQ_INTR2 33
223 #define TR_STRWAITQ_WAKE2 34
224 #define TR_QRUNSERVICE_START 39
225 #define TR_SENDSIG 42
226 #define TR_INSERTQ 43
227 #define TR_REMOVEQ 44
228 #define TR_CANPUT_IN 47
229 #define TR_CANPUT_OUT 48
230 #define TR_BCANPUT_IN 49
231 #define TR_BCANPUT_OUT 50
232 #define TR_STRWRITE_IN 51
233 #define TR_STRWRITE_OUT 52
234 #define TR_STRWRITE_WAIT 53
235 #define TR_STRWRITE_WAKE 54
236 #define TR_STRWRITE_RESID 56
237 #define TR_STRPUTMSG_IN 57
238 #define TR_STRPUTMSG_WAIT 58
239 #define TR_STRPUTMSG_WAKE 59
240 #define TR_STRPUTMSG_OUT 60
241 #define TR_QRUNSERVICE_END 65
242 #define TR_PUT_START 68
243 #define TR_PUTNEXT_START 70
244 #define TR_PUTNEXT_END 71
245 #define TR_DRAIN_SYNCQ_START 72
246 #define TR_DRAIN_SYNCQ_END 73
247 #define TR_STRGETMSG_ENTER 74
248 #define TR_STRGETMSG_WAIT 75
249 #define TR_STRGETMSG_DONE 76
250 #define TR_STRGETMSG_AWAKE 77
251 #define TR_KSTRGETMSG_ENTER 78
252 #define TR_KSTRGETMSG_WAIT 79
253 #define TR_KSTRGETMSG_DONE 80
254 #define TR_KSTRGETMSG_AWAKE 81
255 #define TR_KSTRPUTMSG_IN 82
256 #define TR_KSTRPUTMSG_WAIT 83
257 #define TR_KSTRPUTMSG_WAKE 84
258 #define TR_KSTRPUTMSG_OUT 85
259 #define TR_CANPUTNEXT_IN 86
260 #define TR_CANPUTNEXT_OUT 87
263 * TR_FAC_TCP tags
266 #define TR_TCP_RPUT_IN 2
267 #define TR_TCP_RPUT_OUT 3
268 #define TR_TCP_WPUT_IN 4
269 #define TR_TCP_WPUT_OUT 5
270 #define TR_TCP_RSRV_IN 6
271 #define TR_TCP_RSRV_OUT 7
272 #define TR_TCP_WSRV_IN 8
275 * TR_FAC_UDP tags
278 #define TR_UDP_OPEN 0
279 #define TR_UDP_CLOSE 1
280 #define TR_UDP_RPUT_START 2
281 #define TR_UDP_RPUT_END 3
282 #define TR_UDP_WPUT_START 4
283 #define TR_UDP_WPUT_END 5
284 #define TR_UDP_WPUT_OTHER_START 6
285 #define TR_UDP_WPUT_OTHER_END 7
288 * TR_FAC_IP tags
291 #define TR_IP_OPEN 0
292 #define TR_IP_CLOSE 1
293 #define TR_IP_RPUT_START 2
294 #define TR_IP_RPUT_END 3
295 #define TR_IP_WPUT_START 4
296 #define TR_IP_WPUT_END 5
297 #define TR_IP_RPUT_LOCL_START 12
298 #define TR_IP_RPUT_LOCL_END 13
299 #define TR_IP_RPUT_LOCL_ERR 14
300 #define TR_IP_RSRV_START 15
301 #define TR_IP_RSRV_END 16
302 #define TR_IP_CKSUM_START 17
303 #define TR_IP_CKSUM_END 18
304 #define TR_IP_WPUT_IRE_START 21
305 #define TR_IP_WPUT_IRE_END 22
306 #define TR_IP_WPUT_FRAG_START 23
307 #define TR_IP_WPUT_FRAG_END 24
308 #define TR_IP_WPUT_LOCAL_START 25
309 #define TR_IP_WPUT_LOCAL_END 26
312 * TR_FAC_ARP tags
315 #define TR_ARP_OPEN 0
316 #define TR_ARP_CLOSE 1
317 #define TR_ARP_RPUT_START 2
318 #define TR_ARP_RPUT_END 3
319 #define TR_ARP_WPUT_START 4
320 #define TR_ARP_WPUT_END 5
321 #define TR_ARP_WSRV_START 6
322 #define TR_ARP_WSRV_END 7
325 * TR_FAC_LE tags
328 #define TR_LE_OPEN 0
329 #define TR_LE_CLOSE 1
330 #define TR_LE_WPUT_START 2
331 #define TR_LE_WPUT_END 3
332 #define TR_LE_WSRV_START 4
333 #define TR_LE_WSRV_END 5
334 #define TR_LE_START_START 6
335 #define TR_LE_START_END 7
336 #define TR_LE_INTR_START 8
337 #define TR_LE_INTR_END 9
338 #define TR_LE_READ_START 10
339 #define TR_LE_READ_END 11
340 #define TR_LE_SENDUP_START 12
341 #define TR_LE_SENDUP_END 13
342 #define TR_LE_ADDUDIND_START 14
343 #define TR_LE_ADDUDIND_END 15
344 #define TR_LE_GETBUF_START 16
345 #define TR_LE_GETBUF_END 17
346 #define TR_LE_FREEBUF_START 18
347 #define TR_LE_FREEBUF_END 19
348 #define TR_LE_PROTO_START 20
349 #define TR_LE_PROTO_END 21
350 #define TR_LE_INIT_START 22
351 #define TR_LE_INIT_END 23
354 * TR_FAC_BE tags
357 #define TR_BE_OPEN 0
358 #define TR_BE_CLOSE 1
359 #define TR_BE_WPUT_START 2
360 #define TR_BE_WPUT_END 3
361 #define TR_BE_WSRV_START 4
362 #define TR_BE_WSRV_END 5
363 #define TR_BE_START_START 6
364 #define TR_BE_START_END 7
365 #define TR_BE_INTR_START 8
366 #define TR_BE_INTR_END 9
367 #define TR_BE_READ_START 10
368 #define TR_BE_READ_END 11
369 #define TR_BE_SENDUP_START 12
370 #define TR_BE_SENDUP_END 13
371 #define TR_BE_ADDUDIND_START 14
372 #define TR_BE_ADDUDIND_END 15
373 #define TR_BE_PROTO_START 20
374 #define TR_BE_PROTO_END 21
375 #define TR_BE_INIT_START 22
378 * TR_FAC_PHYSIO
380 #define TR_PHYSIO_START 0
381 #define TR_PHYSIO_LOCK_START 1
382 #define TR_PHYSIO_LOCK_END 2
383 #define TR_PHYSIO_UNLOCK_START 3
384 #define TR_PHYSIO_UNLOCK_END 4
385 #define TR_PHYSIO_GETBUF_START 5
386 #define TR_PHYSIO_GETBUF_END 6
387 #define TR_PHYSIO_END 7
388 #define TR_PHYSIO_AS_LOCK_START 8
389 #define TR_PHYSIO_SEG_LOCK_START 9
390 #define TR_PHYSIO_SEG_LOCK_END 10
391 #define TR_PHYSIO_AS_FAULT_START 11
392 #define TR_PHYSIO_AS_LOCK_END 12
393 #define TR_PHYSIO_AS_UNLOCK_START 13
394 #define TR_PHYSIO_SEG_UNLOCK_START 14
395 #define TR_PHYSIO_AS_UNLOCK_END 15
396 #define TR_PHYSIO_SEGVN_START 16
397 #define TR_PHYSIO_SEGVN_UNLOCK_END 17
398 #define TR_PHYSIO_SEGVN_HIT_END 18
399 #define TR_PHYSIO_SEGVN_FILL_END 19
400 #define TR_PHYSIO_SEGVN_MISS_END 20
403 * TR_FAC_IA tags
406 #define TR_PID_ON 0
407 #define TR_PID_OFF 1
408 #define TR_GROUP_ON 2
409 #define TR_GROUP_OFF 3
410 #define TR_ACTIVE_CHAIN 5
413 * TR_FAC_SCSI tags
416 #define TR_ESPSVC_ACTION_CALL 0
417 #define TR_ESPSVC_START 1
418 #define TR_ESPSVC_END 2
419 #define TR_ESP_CALLBACK_START 3
420 #define TR_ESP_CALLBACK_END 4
421 #define TR_ESP_DOPOLL_START 5
422 #define TR_ESP_DOPOLL_END 6
423 #define TR_ESP_FINISH_START 7
424 #define TR_ESP_FINISH_END 8
425 #define TR_ESP_FINISH_SELECT_START 9
426 #define TR_ESP_FINISH_SELECT_RESET1_END 10
427 #define TR_ESP_FINISH_SELECT_FINISH_END 13
428 #define TR_ESP_FINISH_SELECT_ACTION1_END 14
429 #define TR_ESP_FINISH_SELECT_ACTION2_END 15
430 #define TR_ESP_FINISH_SELECT_RESET2_END 16
431 #define TR_ESP_FINISH_SELECT_RESET3_END 17
432 #define TR_ESP_FINISH_SELECT_ACTION3_END 18
433 #define TR_ESP_HANDLE_CLEARING_START 19
434 #define TR_ESP_HANDLE_CLEARING_END 20
435 #define TR_ESP_HANDLE_CLEARING_RETURN1_END 22
436 #define TR_ESP_HANDLE_CLEARING_ABORT_END 23
437 #define TR_ESP_HANDLE_CLEARING_RETURN3_END 26
438 #define TR_ESP_HANDLE_CMD_START_START 27
439 #define TR_ESP_HANDLE_CMD_START_END 28
440 #define TR_ESP_HANDLE_CMD_DONE_START 30
441 #define TR_ESP_HANDLE_CMD_DONE_END 31
442 #define TR_ESP_HANDLE_CMD_DONE_ABORT1_END 32
443 #define TR_ESP_HANDLE_CMD_DONE_ABORT2_END 33
444 #define TR_ESP_HANDLE_C_CMPLT_START 34
445 #define TR_ESP_HANDLE_C_CMPLT_RETURN1_END 36
446 #define TR_ESP_HANDLE_C_CMPLT_ACTION1_END 37
447 #define TR_ESP_HANDLE_C_CMPLT_ACTION2_END 38
448 #define TR_ESP_HANDLE_C_CMPLT_ACTION3_END 39
449 #define TR_ESP_HANDLE_C_CMPLT_ACTION4_END 40
450 #define TR_ESP_HANDLE_C_CMPLT_RETURN2_END 41
451 #define TR_ESP_HANDLE_C_CMPLT_ACTION5_END 42
452 #define TR_ESP_HANDLE_C_CMPLT_PHASEMANAGE_END 43
453 #define TR_ESP_HANDLE_DATA_START 44
454 #define TR_ESP_HANDLE_DATA_END 45
455 #define TR_ESP_HANDLE_DATA_ABORT1_END 46
456 #define TR_ESP_HANDLE_DATA_ABORT2_END 47
457 #define TR_ESP_HANDLE_DATA_ABORT3_END 48
458 #define TR_ESP_HANDLE_DATA_DONE_START 49
459 #define TR_ESP_HANDLE_DATA_DONE_END 50
460 #define TR_ESP_HANDLE_DATA_DONE_RESET_END 51
461 #define TR_ESP_HANDLE_DATA_DONE_PHASEMANAGE_END 52
462 #define TR_ESP_HANDLE_MORE_MSGIN_START 55
463 #define TR_ESP_HANDLE_MORE_MSGIN_RETURN2_END 57
464 #define TR_ESP_HANDLE_MSG_IN_START 58
465 #define TR_ESP_HANDLE_MSG_IN_END 59
466 #define TR_ESP_HANDLE_MSG_IN_DONE_START 60
467 #define TR_ESP_HANDLE_MSG_IN_DONE_SNDMSG_END 64
468 #define TR_ESP_HANDLE_MSG_IN_DONE_ACTION_END 65
469 #define TR_ESP_HANDLE_MSG_IN_DONE_RETURN2_END 66
470 #define TR_ESP_HANDLE_MSG_OUT_START 67
471 #define TR_ESP_HANDLE_MSG_OUT_END 68
472 #define TR_ESP_HANDLE_MSG_OUT_PHASEMANAGE_END 69
473 #define TR_ESP_HANDLE_MSG_OUT_DONE_START 70
474 #define TR_ESP_HANDLE_MSG_OUT_DONE_END 71
475 #define TR_ESP_HANDLE_MSG_OUT_DONE_PHASEMANAGE_END 73
476 #define TR_ESP_HANDLE_UNKNOWN_START 76
477 #define TR_ESP_HANDLE_UNKNOWN_INT_DISCON_END 78
478 #define TR_ESP_HANDLE_UNKNOWN_RESET_END 84
479 #define TR_ESP_ISTART_START 89
480 #define TR_ESP_ISTART_END 90
481 #define TR_ESP_PHASEMANAGE_CALL 91
482 #define TR_ESP_PHASEMANAGE_START 92
483 #define TR_ESP_PHASEMANAGE_END 93
484 #define TR_ESP_RECONNECT_START 96
485 #define TR_ESP_RECONNECT_F2_END 99
486 #define TR_ESP_RECONNECT_RETURN2_END 107
487 #define TR_ESP_RECONNECT_RESET5_END 108
488 #define TR_ESP_RUNPOLL_START 109
489 #define TR_ESP_RUNPOLL_END 110
490 #define TR_ESP_SCSI_IMPL_PKTALLOC_START 111
491 #define TR_ESP_SCSI_IMPL_PKTALLOC_END 112
492 #define TR_ESP_SCSI_IMPL_PKTFREE_START 113
493 #define TR_ESP_SCSI_IMPL_PKTFREE_END 114
494 #define TR_ESP_STARTCMD_START 115
495 #define TR_ESP_STARTCMD_END 116
496 #define TR_ESP_STARTCMD_RE_SELECTION_END 117
497 #define TR_ESP_STARTCMD_ALLOC_TAG2_END 119
498 #define TR_ESP_STARTCMD_PREEMPT_CALL 120
499 #define TR_ESP_START_START 121
500 #define TR_ESP_START_END 122
501 #define TR_ESP_START_PREPARE_PKT_END 123
502 #define TR_ESP_WATCH_START 124
503 #define TR_ESP_WATCH_END 125
504 #define TR_MAKE_SD_CMD_START 126
505 #define TR_MAKE_SD_CMD_END 127
506 #define TR_MAKE_SD_CMD_INIT_PKT_START 136
507 #define TR_MAKE_SD_CMD_INIT_PKT_END 137
508 #define TR_MAKE_SD_CMD_INIT_PKT_SBUF_START 138
509 #define TR_MAKE_SD_CMD_INIT_PKT_SBUF_END 139
510 #define TR_SDDONE_BIODONE_CALL 142
511 #define TR_SDDONE_START 143
512 #define TR_SDDONE_END 144
513 #define TR_SDINTR_START 145
514 #define TR_SDINTR_END 146
515 #define TR_SDINTR_COMMAND_DONE_END 147
516 #define TR_SDRUNOUT_START 150
517 #define TR_SDRUNOUT_END 151
518 #define TR_SDSTART_START 152
519 #define TR_SDSTART_END 153
520 #define TR_SDSTART_NO_WORK_END 154
521 #define TR_SDSTART_NO_RESOURCES_END 155
522 #define TR_SDSTRATEGY_START 156
523 #define TR_SDSTRATEGY_END 157
524 #define TR_SDSTRATEGY_DISKSORT_START 158
525 #define TR_SDSTRATEGY_DISKSORT_END 159
526 #define TR_SD_CHECK_ERROR_START 162
527 #define TR_SD_CHECK_ERROR_END 164
528 #define TR__ESP_START_START 165
529 #define TR__ESP_START_END 166
530 #define TR_ESP_EMPTY_STARTQ_START 169
531 #define TR_ESP_EMPTY_STARTQ_END 170
532 #define TR_SDSTRATEGY_SMALL_WINDOW_START 171
533 #define TR_SDSTRATEGY_SMALL_WINDOW_END 172
534 #define TR_SDSTART_SMALL_WINDOW_START 173
535 #define TR_SDSTART_SMALL_WINDOW_END 174
536 #define TR_ESP_USTART_START 175
537 #define TR_ESP_USTART_END 176
538 #define TR_ESP_USTART_NOT_FOUND_END 177
539 #define TR_ESP_USTART_DEFAULT_END 178
540 #define TR_ESP_PREPARE_PKT_TRAN_BADPKT_END 180
541 #define TR_ESP_PREPARE_PKT_TRAN_ACCEPT_END 181
542 #define TR_ESP_ALLOC_TAG_START 182
543 #define TR_ESP_ALLOC_TAG_END 183
544 #define TR_ESP_CALL_PKT_COMP_START 184
545 #define TR_ESP_CALL_PKT_COMP_END 185
546 #define TR_ESP_SCSI_IMPL_DMAFREE_START 192
547 #define TR_ESP_SCSI_IMPL_DMAFREE_END 193
550 * TR_FAC_SCSI_ISP tags
553 #define TR_ISP_SCSI_GETCAP_START 1
554 #define TR_ISP_SCSI_GETCAP_END 2
555 #define TR_ISP_SCSI_SETCAP_START 3
556 #define TR_ISP_SCSI_SETCAP_END 4
557 #define TR_ISP_SCSI_START_START 7
558 #define TR_ISP_SCSI_START_DMA_START 8
559 #define TR_ISP_SCSI_START_DMA_END 9
560 #define TR_ISP_SCSI_START_END 10
561 #define TR_ISP_I_START_CMD_START 11
562 #define TR_ISP_I_START_CMD_Q_FULL_END 12
563 #define TR_ISP_I_START_CMD_END 15
564 #define TR_ISP_I_RUN_POLLED_CMD_START 16
565 #define TR_ISP_I_RUN_POLLED_CMD_END 17
566 #define TR_ISP_INTR_START 18
567 #define TR_ISP_INTR_Q_END 25
568 #define TR_ISP_INTR_END 26
569 #define TR_ISP_I_ASYNCH_EVENT_START 33
570 #define TR_ISP_I_ASYNCH_EVENT_END 34
571 #define TR_ISP_I_WATCH_START 43
572 #define TR_ISP_I_WATCH_END 44
573 #define TR_ISP_I_TIMEOUT_START 45
574 #define TR_ISP_I_TIMEOUT_END 46
575 #define TR_ISP_I_QFLUSH_START 47
576 #define TR_ISP_I_QFLUSH_END 48
577 #define TR_ISP_I_SET_MARKER_START 49
578 #define TR_ISP_I_SET_MARKER_END 50
579 #define TR_ISP_SCSI_ABORT_START 51
580 #define TR_ISP_SCSI_ABORT_END 53
581 #define TR_ISP_SCSI_RESET_START 54
582 #define TR_ISP_SCSI_RESET_END 56
583 #define TR_ISP_I_RESET_INTERFACE_START 57
584 #define TR_ISP_I_RESET_INTERFACE_END 58
585 #define TR_ISP_I_CALL_PKT_COMP_START 59
586 #define TR_ISP_I_CALL_PKT_COMP_END 60
587 #define TR_ISP_I_EMPTY_WAITQ_START 61
588 #define TR_ISP_I_EMPTY_WAITQ_END 62
589 #define TR_ISP_I_START_CMD_AFTER_SYNC 66
590 #define TR_ISP_INTR_ASYNC_END 69
591 #define TR_ISP_INTR_MBOX_END 70
592 #define TR_ISP_I_MBOX_CMD_COMPLETE_START 74
593 #define TR_ISP_I_MBOX_CMD_COMPLETE_END 75
594 #define TR_ISP_I_MBOX_CMD_START_START 76
595 #define TR_ISP_I_MBOX_CMD_START_END 77
596 #define TR_ISP_SCSI_PKTALLOC_START 78
597 #define TR_ISP_SCSI_PKTALLOC_END 79
598 #define TR_ISP_SCSI_PKTFREE_START 80
599 #define TR_ISP_SCSI_PKTFREE_DONE 81
600 #define TR_ISP_SCSI_PKTFREE_END 82
601 #define TR_ISP_SCSI_DMAGET_START 83
602 #define TR_ISP_SCSI_DMAGET_ERROR_END 84
603 #define TR_ISP_SCSI_DMAGET_END 85
604 #define TR_ISP_SCSI_DMAFREE_START 86
605 #define TR_ISP_SCSI_DMAFREE_END 87
606 #define TR_ISP_I_RESET_INIT_CHIP_START 88
607 #define TR_ISP_I_RESET_INIT_CHIP_END 89
610 * TR_FAC_SCSI_FAS tags
613 #define TR_FASSVC_ACTION_CALL 1
614 #define TR_FASSVC_END 2
615 #define TR_FASSVC_START 3
616 #define TR_FAS_ALLOC_TAG_END 4
617 #define TR_FAS_ALLOC_TAG_START 5
618 #define TR_FAS_DOPOLL_END 6
619 #define TR_FAS_DOPOLL_START 7
620 #define TR_FAS_EMPTY_WAITQ_END 8
621 #define TR_FAS_EMPTY_WAITQ_START 9
622 #define TR_FAS_FINISH_END 10
623 #define TR_FAS_FINISH_SELECT_ACTION3_END 11
624 #define TR_FAS_FINISH_SELECT_FINISH_END 12
625 #define TR_FAS_FINISH_SELECT_RESET1_END 13
626 #define TR_FAS_FINISH_SELECT_RESET2_END 14
627 #define TR_FAS_FINISH_SELECT_START 16
628 #define TR_FAS_FINISH_START 17
629 #define TR_FAS_HANDLE_CLEARING_ABORT_END 18
630 #define TR_FAS_HANDLE_CLEARING_END 19
631 #define TR_FAS_HANDLE_CLEARING_START 22
632 #define TR_FAS_HANDLE_CMD_DONE_END 24
633 #define TR_FAS_HANDLE_CMD_DONE_START 25
634 #define TR_FAS_HANDLE_CMD_START_END 26
635 #define TR_FAS_HANDLE_CMD_START_START 27
636 #define TR_FAS_HANDLE_C_CMPLT_ACTION1_END 28
637 #define TR_FAS_HANDLE_C_CMPLT_ACTION2_END 29
638 #define TR_FAS_HANDLE_C_CMPLT_START 34
639 #define TR_FAS_HANDLE_DATA_ABORT1_END 35
640 #define TR_FAS_HANDLE_DATA_ABORT2_END 36
641 #define TR_FAS_HANDLE_DATA_DONE_ACTION2_END 37
642 #define TR_FAS_HANDLE_DATA_DONE_RESET_END 39
643 #define TR_FAS_HANDLE_DATA_DONE_START 40
644 #define TR_FAS_HANDLE_DATA_END 41
645 #define TR_FAS_HANDLE_DATA_START 42
646 #define TR_FAS_HANDLE_MORE_MSGIN_RETURN2_END 43
647 #define TR_FAS_HANDLE_MORE_MSGIN_START 44
648 #define TR_FAS_HANDLE_MSG_IN_DONE_ACTION_END 45
649 #define TR_FAS_HANDLE_MSG_IN_DONE_RETURN2_END 46
650 #define TR_FAS_HANDLE_MSG_IN_DONE_SNDMSG_END 47
651 #define TR_FAS_HANDLE_MSG_IN_DONE_START 48
652 #define TR_FAS_HANDLE_MSG_IN_END 49
653 #define TR_FAS_HANDLE_MSG_IN_START 50
654 #define TR_FAS_HANDLE_MSG_OUT_DONE_END 51
655 #define TR_FAS_HANDLE_MSG_OUT_DONE_START 53
656 #define TR_FAS_HANDLE_MSG_OUT_END 54
657 #define TR_FAS_HANDLE_MSG_OUT_PHASEMANAGE_END 55
658 #define TR_FAS_HANDLE_MSG_OUT_START 56
659 #define TR_FAS_HANDLE_UNKNOWN_INT_DISCON_END 57
660 #define TR_FAS_HANDLE_UNKNOWN_RESET_END 58
661 #define TR_FAS_HANDLE_UNKNOWN_START 59
662 #define TR_FAS_ISTART_END 60
663 #define TR_FAS_ISTART_START 61
664 #define TR_FAS_PHASEMANAGE_CALL 62
665 #define TR_FAS_PHASEMANAGE_END 63
666 #define TR_FAS_PHASEMANAGE_START 64
667 #define TR_FAS_POLL_END 65
668 #define TR_FAS_POLL_START 66
669 #define TR_FAS_PREPARE_PKT_TRAN_ACCEPT_END 67
670 #define TR_FAS_PREPARE_PKT_TRAN_BADPKT_END 68
671 #define TR_FAS_RECONNECT_RESET5_END 70
672 #define TR_FAS_RECONNECT_RETURN2_END 71
673 #define TR_FAS_RECONNECT_START 72
674 #define TR_FAS_RUNPOLL_END 73
675 #define TR_FAS_RUNPOLL_START 74
676 #define TR_FAS_SCSI_IMPL_DMAFREE_END 75
677 #define TR_FAS_SCSI_IMPL_DMAFREE_START 76
678 #define TR_FAS_SCSI_IMPL_PKTALLOC_END 77
679 #define TR_FAS_SCSI_IMPL_PKTALLOC_START 78
680 #define TR_FAS_SCSI_IMPL_PKTFREE_END 79
681 #define TR_FAS_SCSI_IMPL_PKTFREE_START 80
682 #define TR_FAS_STARTCMD_END 81
683 #define TR_FAS_STARTCMD_START 82
684 #define TR_FAS_START_END 83
685 #define TR_FAS_START_PREPARE_PKT_END 84
686 #define TR_FAS_START_START 85
687 #define TR_FAS_USTART_END 86
688 #define TR_FAS_USTART_NOT_FOUND_END 87
689 #define TR_FAS_USTART_START 88
690 #define TR_FAS_WATCH_END 89
691 #define TR_FAS_SCSI_IMPL_DMAGET_END 90
692 #define TR_FAS_SCSI_IMPL_DMAGET_START 91
693 #define TR__FAS_START_END 92
694 #define TR__FAS_START_START 93
695 #define TR_FAS_EMPTY_CALLBACKQ_START 111
696 #define TR_FAS_EMPTY_CALLBACKQ_END 112
697 #define TR_FAS_CALL_PKT_COMP_START 113
698 #define TR_FAS_CALL_PKT_COMP_END 114
701 * TR_FAC_CALLOUT tags
704 #define TR_TIMEOUT 0
705 #define TR_UNTIMEOUT 1
706 #define TR_UNTIMEOUT_BOGUS_ID 2
707 #define TR_UNTIMEOUT_EXECUTING 3
708 #define TR_UNTIMEOUT_SELF 4
709 #define TR_CALLOUT_START 5
710 #define TR_CALLOUT_END 6
713 * TR_FAC_SPECFS tags
716 #define TR_SPECFS_GETPAGE 0
717 #define TR_SPECFS_GETAPAGE 1
718 #define TR_SPECFS_PUTPAGE 2
719 #define TR_SPECFS_PUTAPAGE 3
720 #define TR_SPECFS_SEGMAP 4
721 #define TR_SPECFS_OPEN 5
724 * TR_FAC_TMPFS tags
727 #define TR_TMPFS_LOOKUP 0
728 #define TR_TMPFS_CREATE 1
729 #define TR_TMPFS_REMOVE 2
730 #define TR_TMPFS_RENAME 3
731 #define TR_TMPFS_RWTMP_START 4
732 #define TR_TMPFS_RWTMP_END 5
735 * TR_FAC_SWAPFS tags
738 #define TR_SWAPFS_GETPAGE 2
739 #define TR_SWAPFS_GETAPAGE 3
740 #define TR_SWAPFS_PUTPAGE 4
741 #define TR_SWAPFS_PUTAPAGE 5
744 * TR_FAC_UFS tags
747 #define TR_UFS_SYNCIP_START 0
748 #define TR_UFS_SYNCIP_END 1
749 #define TR_UFS_OPEN 2
750 #define TR_UFS_CLOSE 4
751 #define TR_UFS_READ_START 6
752 #define TR_UFS_READ_END 7
753 #define TR_UFS_WRITE_START 8
754 #define TR_UFS_WRITE_END 9
755 #define TR_UFS_RWIP_START 10
756 #define TR_UFS_RWIP_END 11
757 #define TR_UFS_GETATTR_START 12
758 #define TR_UFS_GETATTR_END 13
759 #define TR_UFS_SETATTR_START 14
760 #define TR_UFS_SETATTR_END 15
761 #define TR_UFS_ACCESS_START 16
762 #define TR_UFS_ACCESS_END 17
763 #define TR_UFS_READLINK_START 18
764 #define TR_UFS_READLINK_END 19
765 #define TR_UFS_FSYNC_START 20
766 #define TR_UFS_FSYNC_END 21
767 #define TR_UFS_LOOKUP_START 22
768 #define TR_UFS_LOOKUP_END 23
769 #define TR_UFS_CREATE_START 24
770 #define TR_UFS_CREATE_END 25
771 #define TR_UFS_REMOVE_START 26
772 #define TR_UFS_REMOVE_END 27
773 #define TR_UFS_LINK_START 28
774 #define TR_UFS_LINK_END 29
775 #define TR_UFS_RENAME_START 30
776 #define TR_UFS_RENAME_END 31
777 #define TR_UFS_MKDIR_START 32
778 #define TR_UFS_MKDIR_END 33
779 #define TR_UFS_RMDIR_START 34
780 #define TR_UFS_RMDIR_END 35
781 #define TR_UFS_READDIR_START 36
782 #define TR_UFS_READDIR_END 37
783 #define TR_UFS_SYMLINK_START 38
784 #define TR_UFS_SYMLINK_END 39
785 #define TR_UFS_GETPAGE_START 40
786 #define TR_UFS_GETPAGE_END 41
787 #define TR_UFS_PUTPAGE_START 44
788 #define TR_UFS_PUTPAGE_END 45
789 #define TR_UFS_PUTAPAGE_START 46
790 #define TR_UFS_PUTAPAGE_END 47
791 #define TR_UFS_MAP_START 48
792 #define TR_UFS_MAP_END 49
793 #define TR_UFS_GETSECATTR_START 50
794 #define TR_UFS_GETSECATTR_END 51
795 #define TR_UFS_SETSECATTR_START 52
796 #define TR_UFS_SETSECATTR_END 53
799 * TR_FAC_NFS tags
801 * Simple convention: client tags range from 0-99, server
802 * tags range from 100 up.
805 #define TR_RFSCALL_START 0
806 #define TR_RFSCALL_END 1
807 #define TR_FHTOVP_START 2
808 #define TR_FHTOVP_END 3
810 #define TR_fop_getattr_START 100
811 #define TR_fop_getattr_END 101
812 #define TR_fop_setattr_START 102
813 #define TR_fop_setattr_END 103
814 #define TR_fop_lookup_START 104
815 #define TR_fop_lookup_END 105
816 #define TR_fop_readlink_START 106
817 #define TR_fop_readlink_END 107
818 #define TR_fop_rwlock_START 108
819 #define TR_fop_rwlock_END 109
820 #define TR_fop_access_START 110
821 #define TR_fop_access_END 111
822 #define TR_fop_read_START 114
823 #define TR_fop_read_END 115
824 #define TR_fop_rwunlock_START 118
825 #define TR_fop_rwunlock_END 119
826 #define TR_fop_write_START 120
827 #define TR_fop_write_END 121
828 #define TR_fop_create_START 122
829 #define TR_fop_create_END 123
830 #define TR_fop_remove_START 124
831 #define TR_fop_remove_END 125
832 #define TR_fop_rename_START 126
833 #define TR_fop_rename_END 127
834 #define TR_fop_link_START 128
835 #define TR_fop_link_END 129
836 #define TR_fop_symlink_START 130
837 #define TR_fop_symlink_END 131
838 #define TR_fop_mkdir_START 132
839 #define TR_fop_mkdir_END 133
840 #define TR_fop_rmdir_START 134
841 #define TR_fop_rmdir_END 135
842 #define TR_fop_readdir_START 136
843 #define TR_fop_readdir_END 137
844 #define TR_RFS_GETATTR_START 142
845 #define TR_RFS_GETATTR_END 143
846 #define TR_RFS_SETATTR_START 144
847 #define TR_RFS_SETATTR_END 145
848 #define TR_RFS_LOOKUP_START 146
849 #define TR_RFS_LOOKUP_END 147
850 #define TR_RFS_READLINK_START 148
851 #define TR_RFS_READLINK_END 149
852 #define TR_RFS_READ_START 150
853 #define TR_RFS_READ_END 151
854 #define TR_RFS_WRITE_START 152
855 #define TR_RFS_WRITE_END 153
856 #define TR_RFS_CREATE_START 154
857 #define TR_RFS_CREATE_END 155
858 #define TR_RFS_REMOVE_START 156
859 #define TR_RFS_REMOVE_END 157
860 #define TR_RFS_RENAME_START 158
861 #define TR_RFS_RENAME_END 159
862 #define TR_RFS_LINK_START 160
863 #define TR_RFS_LINK_END 161
864 #define TR_RFS_SYMLINK_START 162
865 #define TR_RFS_SYMLINK_END 163
866 #define TR_RFS_MKDIR_START 164
867 #define TR_RFS_MKDIR_END 165
868 #define TR_RFS_RMDIR_START 166
869 #define TR_RFS_RMDIR_END 167
870 #define TR_RFS_READDIR_START 168
871 #define TR_RFS_READDIR_END 169
872 #define TR_RFS_STATFS_START 170
873 #define TR_RFS_STATFS_END 171
874 #define TR_SVC_SENDREPLY_START 178
875 #define TR_SVC_SENDREPLY_END 179
877 /* More VOP calls */
878 #define TR_fop_fsync_START 180
879 #define TR_fop_fsync_END 181
880 #define TR_fop_putpage_START 182
881 #define TR_fop_putpage_END 183
882 #define TR_SVC_GETARGS_START 186
883 #define TR_SVC_GETARGS_END 187
884 #define TR_CHECKEXPORT_START 188
885 #define TR_CHECKEXPORT_END 189
886 #define TR_SVC_FREEARGS_START 192
887 #define TR_SVC_FREEARGS_END 193
889 /* NFS fast path server trace points */
890 #define TR_NFSFP_QUE_REQ_ENQ 212
891 #define TR_NFSFP_QUE_REQ_DEQ 213
892 #define TR_SVC_FREERES_START 222
893 #define TR_SVC_FREERES_END 223
895 /* Name cache tracing */
896 #define TR_DNLC_ENTER_START 218
897 #define TR_DNLC_ENTER_END 219
898 #define TR_DNLC_LOOKUP_START 220
899 #define TR_DNLC_LOOKUP_END 221
901 /* Common dispatch tracing */
902 #define TR_CMN_DISPATCH_START 224
903 #define TR_CMN_PROC_START 225
904 #define TR_CMN_PROC_END 226
905 #define TR_CMN_DISPATCH_END 227
907 /* More VOP calls */
908 #define TR_fop_space_START 228
909 #define TR_fop_space_END 229
912 * TR_FAC_KRPC tags
915 #define TR_SVC_GETREQ_START 0
916 #define TR_SVC_RUN 4
917 #define TR_SVC_CLTS_KRECV_START 5
918 #define TR_SVC_CLTS_KRECV_END 6
919 #define TR_XDR_CALLMSG_START 7
920 #define TR_XDR_CALLMSG_END 8
921 #define TR_SVC_CLTS_KSEND_START 9
922 #define TR_SVC_CLTS_KSEND_END 10
923 #define TR_XDR_REPLYMSG_START 11
924 #define TR_XDR_REPLYMSG_END 12
925 #define TR_RPCMODOPEN_START 13
926 #define TR_RPCMODOPEN_END 14
927 #define TR_RPCMODRPUT_START 15
928 #define TR_RPCMODRPUT_END 16
929 #define TR_SVC_QUEUEREQ_START 23
930 #define TR_SVC_QUEUEREQ_END 24
931 #define TR_SVC_GETREQ_AUTH_START 25
932 #define TR_SVC_GETREQ_AUTH_END 26
933 #define TR_SVC_COTS_KRECV_START 32
934 #define TR_SVC_COTS_KRECV_END 33
935 #define TR_SVC_COTS_KDUP_DONE 34
936 #define TR_SVC_COTS_KSEND_START 36
937 #define TR_SVC_COTS_KSEND_END 37
940 * TR_FAC_SCSI_RES
943 #define TR_SCSI_INIT_PKT_START 0
944 #define TR_SCSI_INIT_PKT_END 3
945 #define TR_SCSI_ALLOC_CONSISTENT_BUF_START 10
946 #define TR_SCSI_ALLOC_CONSISTENT_BUF_END 14
947 #define TR_SCSI_FREE_CONSISTENT_BUF_START 15
948 #define TR_SCSI_FREE_CONSISTENT_BUF_END 16
949 #define TR_SCSI_IMPL_DMAGET_START 24
950 #define TR_SCSI_IMPL_DMAGET_END 25
951 #define TR_SCSI_DESTROY_PKT_START 28
952 #define TR_SCSI_DESTROY_PKT_END 29
954 #define TR_FIFOREAD_WAIT 3
955 #define TR_FIFOREAD_WAKE 4
956 #define TR_FIFOWRITE_OUT 7
957 #define TR_FIFOWRITE_WAIT 9
958 #define TR_FIFOWRITE_WAKE 10
960 #define TR_RLOGINP_RPUT_IN 0
961 #define TR_RLOGINP_RPUT_OUT 1
962 #define TR_RLOGINP_RSRV_IN 2
963 #define TR_RLOGINP_RSRV_OUT 3
964 #define TR_RLOGINP_WSRV_IN 4
965 #define TR_RLOGINP_WSRV_OUT 5
966 #define TR_RLOGINP_WPUT_IN 6
967 #define TR_RLOGINP_WPUT_OUT 7
968 #define TR_RLOGINP_WINCTL_IN 8
969 #define TR_RLOGINP_WINCTL_OUT 9
972 * TR_FAC_SOCKFS tags
974 #define TR_SOCKFS_OPEN 0
977 * TR_FAC_DEVMAP tags
980 #define TR_DEVMAP_DUP 0
981 #define TR_DEVMAP_UNMAP 1
982 #define TR_DEVMAP_FREE 2
983 #define TR_DEVMAP_FAULT 3
984 #define TR_DEVMAP_FAULTA 4
985 #define TR_DEVMAP_SETPROT 5
986 #define TR_DEVMAP_CHECKPROT 6
987 #define TR_DEVMAP_SEGDEV_BADOP 7
988 #define TR_DEVMAP_SYNC 8
989 #define TR_DEVMAP_INCORE 9
990 #define TR_DEVMAP_LOCKOP 10
991 #define TR_DEVMAP_GETPROT 11
992 #define TR_DEVMAP_GETOFFSET 12
993 #define TR_DEVMAP_GETTYPE 13
994 #define TR_DEVMAP_GETVP 14
995 #define TR_DEVMAP_ADVISE 15
996 #define TR_DEVMAP_PAGELOCK 17
997 #define TR_DEVMAP_GETMEMID 18
998 #define TR_DEVMAP_SOFTUNLOCK 19
999 #define TR_DEVMAP_FAULTPAGE 20
1000 #define TR_DEVMAP_FAULTPAGES 21
1001 #define TR_DEVMAP_SEGMAP_SETUP 22
1002 #define TR_DEVMAP_DEVICE 23
1003 #define TR_DEVMAP_DO_CTXMGT 24
1004 #define TR_DEVMAP_ROUNDUP 25
1005 #define TR_DEVMAP_FIND_HANDLE 26
1006 #define TR_DEVMAP_UNLOAD 27
1007 #define TR_DEVMAP_GET_LARGE_PGSIZE 28
1008 #define TR_DEVMAP_SOFTLOCK_INIT 29
1009 #define TR_DEVMAP_SOFTLOCK_RELE 30
1010 #define TR_DEVMAP_CTX_RELE 31
1011 #define TR_DEVMAP_LOAD 32
1012 #define TR_DEVMAP_SETUP 33
1013 #define TR_DEVMAP_SEGMAP 34
1014 #define TR_DEVMAP_DEVMEM_SETUP 35
1015 #define TR_DEVMAP_DEVMEM_REMAP 36
1016 #define TR_DEVMAP_UMEM_SETUP 37
1017 #define TR_DEVMAP_UMEM_REMAP 38
1018 #define TR_DEVMAP_SET_CTX_TIMEOUT 39
1019 #define TR_DEVMAP_DEFAULT_ACCESS 40
1020 #define TR_DEVMAP_UMEM_ALLOC 41
1021 #define TR_DEVMAP_UMEM_FREE 42
1022 #define TR_DEVMAP_CTXTO 43
1023 #define TR_DEVMAP_DUP_CK1 44
1024 #define TR_DEVMAP_UNMAP_CK1 45
1025 #define TR_DEVMAP_UNMAP_CK2 46
1026 #define TR_DEVMAP_UNMAP_CK3 47
1027 #define TR_DEVMAP_FAULT_CK1 48
1028 #define TR_DEVMAP_SETPROT_CK1 49
1029 #define TR_DEVMAP_FAULTPAGE_CK1 50
1030 #define TR_DEVMAP_DO_CTXMGT_CK1 51
1031 #define TR_DEVMAP_DO_CTXMGT_CK2 52
1032 #define TR_DEVMAP_DO_CTXMGT_CK3 53
1033 #define TR_DEVMAP_DO_CTXMGT_CK4 54
1034 #define TR_DEVMAP_ROUNDUP_CK1 55
1035 #define TR_DEVMAP_ROUNDUP_CK2 56
1036 #define TR_DEVMAP_CTX_RELE_CK1 57
1039 * TR_FAC_DAD tags
1042 #define TR_DCDSTRATEGY_START 1
1043 #define TR_DCDSTRATEGY_DISKSORT_START 2
1044 #define TR_DCDSTRATEGY_DISKSORT_END 3
1045 #define TR_DCDSTRATEGY_SMALL_WINDOW_START 4
1046 #define TR_DCDSTRATEGY_SMALL_WINDOW_END 5
1047 #define TR_DCDSTRATEGY_END 6
1048 #define TR_DCDSTART_START 7
1049 #define TR_DCDSTART_NO_WORK_END 8
1050 #define TR_DCDSTART_NO_RESOURCES_END 9
1051 #define TR_DCASTART_SMALL_WINDOW_START 10
1052 #define TR_DCDSTART_SMALL_WINDOW_END 11
1053 #define TR_DCDSTART_END 12
1054 #define TR_MAKE_DCD_CMD_START 13
1055 #define TR_MAKE_DCD_CMD_INIT_PKT_START 14
1056 #define TR_MAKE_DCD_CMD_INIT_PKT_END 15
1057 #define TR_MAKE_DCD_CMD_END 17
1058 #define TR_DCDINTR_START 18
1059 #define TR_DCDINTR_COMMAND_DONE_END 19
1060 #define TR_DCDINTR_END 20
1061 #define TR_DCDONE_START 21
1062 #define TR_DCDDONE_BIODONE_CALL 22
1063 #define TR_DCDDONE_END 23
1064 #define TR_DCD_CHECK_ERROR_START 24
1065 #define TR_DCD_CHECK_ERROR_END 25
1066 #define TR_DCDRUNOUT_START 26
1067 #define TR_DCDRUNOUT_END 27
1069 #if defined(DEBUG) || defined(lint) || defined(__lint)
1071 #define TRACE_0(fac, tag, name) { \
1072 extern void __dtrace_probe___vtrace_##tag(void); \
1073 __dtrace_probe___vtrace_##tag(); \
1076 #define TRACE_1(fac, tag, name, d1) { \
1077 extern void __dtrace_probe___vtrace_##tag(ulong_t); \
1078 __dtrace_probe___vtrace_##tag((ulong_t)(d1)); \
1081 #define TRACE_2(fac, tag, name, d1, d2) { \
1082 extern void __dtrace_probe___vtrace_##tag(ulong_t, ulong_t); \
1083 __dtrace_probe___vtrace_##tag((ulong_t)(d1), (ulong_t)(d2)); \
1086 #define TRACE_3(fac, tag, name, d1, d2, d3) { \
1087 extern void __dtrace_probe___vtrace_##tag(ulong_t, ulong_t, ulong_t); \
1088 __dtrace_probe___vtrace_##tag((ulong_t)(d1), (ulong_t)(d2), \
1089 (ulong_t)(d3)); \
1092 #define TRACE_4(fac, tag, name, d1, d2, d3, d4) { \
1093 extern void __dtrace_probe___vtrace_##tag(ulong_t, ulong_t, ulong_t, \
1094 ulong_t); \
1095 __dtrace_probe___vtrace_##tag((ulong_t)(d1), (ulong_t)(d2), \
1096 (ulong_t)(d3), (ulong_t)(d4)); \
1099 #define TRACE_5(fac, tag, name, d1, d2, d3, d4, d5) { \
1100 extern void __dtrace_probe___vtrace_##tag(ulong_t, ulong_t, ulong_t, \
1101 ulong_t, ulong_t); \
1102 __dtrace_probe___vtrace_##tag((ulong_t)(d1), (ulong_t)(d2), \
1103 (ulong_t)(d3), (ulong_t)(d4), (ulong_t)(d5)); \
1106 #else
1108 #define TRACE_0(fac, tag, name)
1109 #define TRACE_1(fac, tag, name, d1)
1110 #define TRACE_2(fac, tag, name, d1, d2)
1111 #define TRACE_3(fac, tag, name, d1, d2, d3)
1112 #define TRACE_4(fac, tag, name, d1, d2, d3, d4)
1113 #define TRACE_5(fac, tag, name, d1, d2, d3, d4, d5)
1115 #endif
1117 #ifdef __cplusplus
1119 #endif
1121 #endif /* _SYS_VTRACE_H */