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