]> git.saurik.com Git - apple/xnu.git/blob - bsd/dev/dtrace/sdt_subr.c
90ea1331a5b59e4ee2b12f65a06c56f6993d1214
[apple/xnu.git] / bsd / dev / dtrace / sdt_subr.c
1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 /* #pragma ident "@(#)sdt_subr.c 1.13 08/06/13 SMI" */
27
28 #include <sys/sdt_impl.h>
29
30 static dtrace_pattr_t vtrace_attr = {
31 { DTRACE_STABILITY_UNSTABLE, DTRACE_STABILITY_UNSTABLE, DTRACE_CLASS_ISA },
32 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
33 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
34 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
35 { DTRACE_STABILITY_UNSTABLE, DTRACE_STABILITY_UNSTABLE, DTRACE_CLASS_ISA },
36 };
37
38 static dtrace_pattr_t info_attr = {
39 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
40 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
41 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
42 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
43 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
44 };
45
46 static dtrace_pattr_t fpu_attr = {
47 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
48 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
49 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
50 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_CPU },
51 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
52 };
53
54 static dtrace_pattr_t fsinfo_attr = {
55 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
56 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
57 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
58 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
59 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
60 };
61
62 static dtrace_pattr_t stab_attr = {
63 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
64 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
65 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
66 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
67 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
68 };
69
70 static dtrace_pattr_t sdt_attr = {
71 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
72 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
73 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
74 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
75 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
76 };
77
78 static dtrace_pattr_t xpv_attr = {
79 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_PLATFORM },
80 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
81 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
82 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_PLATFORM },
83 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_PLATFORM },
84 };
85
86 sdt_provider_t sdt_providers[] = {
87 { "vtrace", "__vtrace____", &vtrace_attr, 0 },
88 { "sysinfo", "__cpu_sysinfo____", &info_attr, 0 },
89 { "vminfo", "__vminfo____", &info_attr, 0 },
90 { "fpuinfo", "__fpuinfo____", &fpu_attr, 0 },
91 { "sched", "__sched____", &stab_attr, 0 },
92 { "proc", "__proc____", &stab_attr, 0 },
93 { "io", "__io____", &stab_attr, 0 },
94 { "ip", "__ip____", &stab_attr, 0 },
95 { "mib", "__mib____", &stab_attr, 0 },
96 { "fsinfo", "__fsinfo____", &fsinfo_attr, 0 },
97 { "nfsv3", "__nfsv3____", &stab_attr, 0 },
98 { "nfsv4", "__nfsv4____", &stab_attr, 0 },
99 { "xpv", "__xpv____", &xpv_attr, 0 },
100 { "sysevent", "__sysevent____", &stab_attr, 0 },
101 { "sdt", "__sdt____", &sdt_attr, 0 },
102 #if !defined(__APPLE__)
103 { NULL }
104 #else
105 { NULL, NULL, NULL, 0 }
106 #endif /* __APPLE__ */
107 };
108
109 /* Warning: Need xnu cognate for disp_t. */
110 sdt_argdesc_t sdt_args[] = {
111 { "sched", "wakeup", 0, 0, "struct thread *", "lwpsinfo_t *" },
112 { "sched", "wakeup", 1, 1, "struct proc *", "psinfo_t *" },
113 { "sched", "dequeue", 0, 0, "struct thread *", "lwpsinfo_t *" },
114 { "sched", "dequeue", 1, 0, "struct proc *", "psinfo_t *" },
115 { "sched", "dequeue", 2, 1, "disp_t *", "cpuinfo_t *" },
116 { "sched", "enqueue", 0, 0, "struct thread *", "lwpsinfo_t *" },
117 { "sched", "enqueue", 1, 0, "struct proc *", "psinfo_t *" },
118 { "sched", "enqueue", 2, 1, "disp_t *", "cpuinfo_t *" },
119 { "sched", "enqueue", 3, 2, "int", NULL },
120 /* sched:::sleep has no arguments */
121 /* sched:::on-cpu has no arguments */
122 { "sched", "off-cpu", 0, 0, "struct thread *", "lwpsinfo_t *" },
123 { "sched", "off-cpu", 1, 1, "struct proc *", "psinfo_t *" },
124 { "sched", "tick", 0, 0, "struct thread *", "lwpsinfo_t *" },
125 { "sched", "tick", 1, 0, "struct proc *", "psinfo_t *" },
126 { "sched", "change-pri", 0, 0, "struct thread *", "lwpsinfo_t *" },
127 { "sched", "change-pri", 1, 0, "struct proc *", "psinfo_t *" },
128 { "sched", "change-pri", 2, 1, "pri_t", NULL },
129 { "sched", "schedctl-nopreempt", 0, 0, "struct thread *", "lwpsinfo_t *" },
130 { "sched", "schedctl-nopreempt", 1, 0, "struct proc *", "psinfo_t *" },
131 { "sched", "schedctl-nopreempt", 2, 1, "int", NULL },
132 { "sched", "schedctl-preempt", 0, 0, "struct thread *", "lwpsinfo_t *" },
133 { "sched", "schedctl-preempt", 1, 0, "struct proc *", "psinfo_t *" },
134 { "sched", "schedctl-yield", 0, 0, "int", NULL },
135 { "sched", "surrender", 0, 0, "struct thread *", "lwpsinfo_t *" },
136 { "sched", "surrender", 1, 0, "struct proc *", "psinfo_t *" },
137 { "sched", "surrender", 1, 0, "kthread_t *", "psinfo_t *" },
138 { "sched", "cpucaps-sleep", 0, 0, "kthread_t *", "lwpsinfo_t *" },
139 { "sched", "cpucaps-sleep", 1, 0, "kthread_t *", "psinfo_t *" },
140 { "sched", "cpucaps-wakeup", 0, 0, "kthread_t *", "lwpsinfo_t *" },
141 { "sched", "cpucaps-wakeup", 1, 0, "kthread_t *", "psinfo_t *" },
142
143 { "proc", "create", 0, 0, "struct proc *", "psinfo_t *" },
144 { "proc", "exec", 0, 0, "string", NULL },
145 { "proc", "exec-failure", 0, 0, "int", NULL },
146 /* proc:::exec-success has no arguments */
147 { "proc", "exit", 0, 0, "int", NULL },
148 { "proc", "fault", 0, 0, "int", NULL },
149 { "proc", "fault", 1, 1, "siginfo_t *", NULL },
150 { "proc", "lwp-create", 0, 0, "struct thread *", "lwpsinfo_t *" },
151 { "proc", "lwp-create", 1, 0, "struct thread *", "psinfo_t *" },
152 /* proc:::lwp-start has no arguments */
153 /* proc:::lwp-exit has no arguments */
154 { "proc", "signal-clear", 0, 0, "int", NULL },
155 { "proc", "signal-clear", 1, 1, "siginfo_t *", NULL },
156 { "proc", "signal-discard", 0, 0, "struct thread *", "lwpsinfo_t *" },
157 { "proc", "signal-discard", 1, 1, "struct proc *", "psinfo_t *" },
158 { "proc", "signal-discard", 2, 2, "int", NULL },
159 { "proc", "signal-handle", 0, 0, "int", NULL },
160 { "proc", "signal-handle", 1, 1, "siginfo_t *", NULL },
161 { "proc", "signal-handle", 2, 2, "void (*)(void)", NULL },
162 { "proc", "signal-send", 0, 0, "struct thread *", "lwpsinfo_t *" },
163 { "proc", "signal-send", 1, 1, "struct proc *", "psinfo_t *" },
164 { "proc", "signal-send", 2, 2, "int", NULL },
165 /* proc:::start has no arguments */
166
167 { "io", "start", 0, 0, "struct buf *", "bufinfo_t *" },
168 { "io", "start", 1, 0, "struct buf *", "devinfo_t *" },
169 { "io", "start", 2, 0, "struct buf *", "fileinfo_t *" },
170 { "io", "done", 0, 0, "struct buf *", "bufinfo_t *" },
171 { "io", "done", 1, 0, "struct buf *", "devinfo_t *" },
172 { "io", "done", 2, 0, "struct buf *", "fileinfo_t *" },
173 { "io", "wait-start", 0, 0, "struct buf *", "bufinfo_t *" },
174 { "io", "wait-start", 1, 0, "struct buf *", "devinfo_t *" },
175 { "io", "wait-start", 2, 0, "struct buf *", "fileinfo_t *" },
176 { "io", "wait-done", 0, 0, "struct buf *", "bufinfo_t *" },
177 { "io", "wait-done", 1, 0, "struct buf *", "devinfo_t *" },
178 { "io", "wait-done", 2, 0, "struct buf *", "fileinfo_t *" },
179 #if defined(__APPLE__)
180 { "io", "journal-start", 0, 0, "struct buf *", "bufinfo_t *" },
181 { "io", "journal-start", 1, 0, "struct buf *", "devinfo_t *" },
182 { "io", "journal-start", 2, 0, "struct buf *", "fileinfo_t *" },
183 { "io", "journal-done", 0, 0, "struct buf *", "bufinfo_t *" },
184 { "io", "journal-done", 1, 0, "struct buf *", "devinfo_t *" },
185 { "io", "journal-done", 2, 0, "struct buf *", "fileinfo_t *" },
186 #endif /* __APPLE__ */
187
188 { "mib", NULL, 0, 0, "int", NULL },
189 { "fsinfo", NULL, 0, 0, "struct vnode *", "fileinfo_t *" },
190 { "fsinfo", NULL, 1, 1, "int", "int" },
191
192 { "nfsv3", "op-getattr-start", 0, 0, "struct svc_req *",
193 "conninfo_t *" },
194 { "nfsv3", "op-getattr-start", 1, 1, "nfsv3oparg_t *",
195 "nfsv3opinfo_t *" },
196 { "nfsv3", "op-getattr-start", 2, 3, "GETATTR3args *", NULL },
197 { "nfsv3", "op-getattr-done", 0, 0, "struct svc_req *",
198 "conninfo_t *" },
199 { "nfsv3", "op-getattr-done", 1, 1, "nfsv3oparg_t *",
200 "nfsv3opinfo_t *" },
201 { "nfsv3", "op-getattr-done", 2, 3, "GETATTR3res *", NULL },
202 { "nfsv3", "op-setattr-start", 0, 0, "struct svc_req *",
203 "conninfo_t *" },
204 { "nfsv3", "op-setattr-start", 1, 1, "nfsv3oparg_t *",
205 "nfsv3opinfo_t *" },
206 { "nfsv3", "op-setattr-start", 2, 3, "SETATTR3args *", NULL },
207 { "nfsv3", "op-setattr-done", 0, 0, "struct svc_req *",
208 "conninfo_t *" },
209 { "nfsv3", "op-setattr-done", 1, 1, "nfsv3oparg_t *",
210 "nfsv3opinfo_t *" },
211 { "nfsv3", "op-setattr-done", 2, 3, "SETATTR3res *", NULL },
212 { "nfsv3", "op-lookup-start", 0, 0, "struct svc_req *",
213 "conninfo_t *" },
214 { "nfsv3", "op-lookup-start", 1, 1, "nfsv3oparg_t *",
215 "nfsv3opinfo_t *" },
216 { "nfsv3", "op-lookup-start", 2, 3, "LOOKUP3args *", NULL },
217 { "nfsv3", "op-lookup-done", 0, 0, "struct svc_req *",
218 "conninfo_t *" },
219 { "nfsv3", "op-lookup-done", 1, 1, "nfsv3oparg_t *",
220 "nfsv3opinfo_t *" },
221 { "nfsv3", "op-lookup-done", 2, 3, "LOOKUP3res *", NULL },
222 { "nfsv3", "op-access-start", 0, 0, "struct svc_req *",
223 "conninfo_t *" },
224 { "nfsv3", "op-access-start", 1, 1, "nfsv3oparg_t *",
225 "nfsv3opinfo_t *" },
226 { "nfsv3", "op-access-start", 2, 3, "ACCESS3args *", NULL },
227 { "nfsv3", "op-access-done", 0, 0, "struct svc_req *",
228 "conninfo_t *" },
229 { "nfsv3", "op-access-done", 1, 1, "nfsv3oparg_t *",
230 "nfsv3opinfo_t *" },
231 { "nfsv3", "op-access-done", 2, 3, "ACCESS3res *", NULL },
232 { "nfsv3", "op-commit-start", 0, 0, "struct svc_req *",
233 "conninfo_t *" },
234 { "nfsv3", "op-commit-start", 1, 1, "nfsv3oparg_t *",
235 "nfsv3opinfo_t *" },
236 { "nfsv3", "op-commit-start", 2, 3, "COMMIT3args *", NULL },
237 { "nfsv3", "op-commit-done", 0, 0, "struct svc_req *",
238 "conninfo_t *" },
239 { "nfsv3", "op-commit-done", 1, 1, "nfsv3oparg_t *",
240 "nfsv3opinfo_t *" },
241 { "nfsv3", "op-commit-done", 2, 3, "COMMIT3res *", NULL },
242 { "nfsv3", "op-create-start", 0, 0, "struct svc_req *",
243 "conninfo_t *" },
244 { "nfsv3", "op-create-start", 1, 1, "nfsv3oparg_t *",
245 "nfsv3opinfo_t *" },
246 { "nfsv3", "op-create-start", 2, 3, "CREATE3args *", NULL },
247 { "nfsv3", "op-create-done", 0, 0, "struct svc_req *",
248 "conninfo_t *" },
249 { "nfsv3", "op-create-done", 1, 1, "nfsv3oparg_t *",
250 "nfsv3opinfo_t *" },
251 { "nfsv3", "op-create-done", 2, 3, "CREATE3res *", NULL },
252 { "nfsv3", "op-fsinfo-start", 0, 0, "struct svc_req *",
253 "conninfo_t *" },
254 { "nfsv3", "op-fsinfo-start", 1, 1, "nfsv3oparg_t *",
255 "nfsv3opinfo_t *" },
256 { "nfsv3", "op-fsinfo-start", 2, 3, "FSINFO3args *", NULL },
257 { "nfsv3", "op-fsinfo-done", 0, 0, "struct svc_req *",
258 "conninfo_t *" },
259 { "nfsv3", "op-fsinfo-done", 1, 1, "nfsv3oparg_t *",
260 "nfsv3opinfo_t *" },
261 { "nfsv3", "op-fsinfo-done", 2, 3, "FSINFO3res *", NULL },
262 { "nfsv3", "op-fsstat-start", 0, 0, "struct svc_req *",
263 "conninfo_t *" },
264 { "nfsv3", "op-fsstat-start", 1, 1, "nfsv3oparg_t *",
265 "nfsv3opinfo_t *" },
266 { "nfsv3", "op-fsstat-start", 2, 3, "FSSTAT3args *", NULL },
267 { "nfsv3", "op-fsstat-done", 0, 0, "struct svc_req *",
268 "conninfo_t *" },
269 { "nfsv3", "op-fsstat-done", 1, 1, "nfsv3oparg_t *",
270 "nfsv3opinfo_t *" },
271 { "nfsv3", "op-fsstat-done", 2, 3, "FSSTAT3res *", NULL },
272 { "nfsv3", "op-link-start", 0, 0, "struct svc_req *",
273 "conninfo_t *" },
274 { "nfsv3", "op-link-start", 1, 1, "nfsv3oparg_t *",
275 "nfsv3opinfo_t *" },
276 { "nfsv3", "op-link-start", 2, 3, "LINK3args *", NULL },
277 { "nfsv3", "op-link-done", 0, 0, "struct svc_req *",
278 "conninfo_t *" },
279 { "nfsv3", "op-link-done", 1, 1, "nfsv3oparg_t *",
280 "nfsv3opinfo_t *" },
281 { "nfsv3", "op-link-done", 2, 3, "LINK3res *", NULL },
282 { "nfsv3", "op-mkdir-start", 0, 0, "struct svc_req *",
283 "conninfo_t *" },
284 { "nfsv3", "op-mkdir-start", 1, 1, "nfsv3oparg_t *",
285 "nfsv3opinfo_t *" },
286 { "nfsv3", "op-mkdir-start", 2, 3, "MKDIR3args *", NULL },
287 { "nfsv3", "op-mkdir-done", 0, 0, "struct svc_req *",
288 "conninfo_t *" },
289 { "nfsv3", "op-mkdir-done", 1, 1, "nfsv3oparg_t *",
290 "nfsv3opinfo_t *" },
291 { "nfsv3", "op-mkdir-done", 2, 3, "MKDIR3res *", NULL },
292 { "nfsv3", "op-mknod-start", 0, 0, "struct svc_req *",
293 "conninfo_t *" },
294 { "nfsv3", "op-mknod-start", 1, 1, "nfsv3oparg_t *",
295 "nfsv3opinfo_t *" },
296 { "nfsv3", "op-mknod-start", 2, 3, "MKNOD3args *", NULL },
297 { "nfsv3", "op-mknod-done", 0, 0, "struct svc_req *",
298 "conninfo_t *" },
299 { "nfsv3", "op-mknod-done", 1, 1, "nfsv3oparg_t *",
300 "nfsv3opinfo_t *" },
301 { "nfsv3", "op-mknod-done", 2, 3, "MKNOD3res *", NULL },
302 { "nfsv3", "op-null-start", 0, 0, "struct svc_req *",
303 "conninfo_t *" },
304 { "nfsv3", "op-null-start", 1, 1, "nfsv3oparg_t *",
305 "nfsv3opinfo_t *" },
306 { "nfsv3", "op-null-done", 0, 0, "struct svc_req *",
307 "conninfo_t *" },
308 { "nfsv3", "op-null-done", 1, 1, "nfsv3oparg_t *",
309 "nfsv3opinfo_t *" },
310 { "nfsv3", "op-pathconf-start", 0, 0, "struct svc_req *",
311 "conninfo_t *" },
312 { "nfsv3", "op-pathconf-start", 1, 1, "nfsv3oparg_t *",
313 "nfsv3opinfo_t *" },
314 { "nfsv3", "op-pathconf-start", 2, 3, "PATHCONF3args *", NULL },
315 { "nfsv3", "op-pathconf-done", 0, 0, "struct svc_req *",
316 "conninfo_t *" },
317 { "nfsv3", "op-pathconf-done", 1, 1, "nfsv3oparg_t *",
318 "nfsv3opinfo_t *" },
319 { "nfsv3", "op-pathconf-done", 2, 3, "PATHCONF3res *", NULL },
320 { "nfsv3", "op-read-start", 0, 0, "struct svc_req *",
321 "conninfo_t *" },
322 { "nfsv3", "op-read-start", 1, 1, "nfsv3oparg_t *",
323 "nfsv3opinfo_t *" },
324 { "nfsv3", "op-read-start", 2, 3, "READ3args *", NULL },
325 { "nfsv3", "op-read-done", 0, 0, "struct svc_req *",
326 "conninfo_t *" },
327 { "nfsv3", "op-read-done", 1, 1, "nfsv3oparg_t *",
328 "nfsv3opinfo_t *" },
329 { "nfsv3", "op-read-done", 2, 3, "READ3res *", NULL },
330 { "nfsv3", "op-readdir-start", 0, 0, "struct svc_req *",
331 "conninfo_t *" },
332 { "nfsv3", "op-readdir-start", 1, 1, "nfsv3oparg_t *",
333 "nfsv3opinfo_t *" },
334 { "nfsv3", "op-readdir-start", 2, 3, "READDIR3args *", NULL },
335 { "nfsv3", "op-readdir-done", 0, 0, "struct svc_req *",
336 "conninfo_t *" },
337 { "nfsv3", "op-readdir-done", 1, 1, "nfsv3oparg_t *",
338 "nfsv3opinfo_t *" },
339 { "nfsv3", "op-readdir-done", 2, 3, "READDIR3res *", NULL },
340 { "nfsv3", "op-readdirplus-start", 0, 0, "struct svc_req *",
341 "conninfo_t *" },
342 { "nfsv3", "op-readdirplus-start", 1, 1, "nfsv3oparg_t *",
343 "nfsv3opinfo_t *" },
344 { "nfsv3", "op-readdirplus-start", 2, 3, "READDIRPLUS3args *", NULL },
345 { "nfsv3", "op-readdirplus-done", 0, 0, "struct svc_req *",
346 "conninfo_t *" },
347 { "nfsv3", "op-readdirplus-done", 1, 1, "nfsv3oparg_t *",
348 "nfsv3opinfo_t *" },
349 { "nfsv3", "op-readdirplus-done", 2, 3, "READDIRPLUS3res *", NULL },
350 { "nfsv3", "op-readlink-start", 0, 0, "struct svc_req *",
351 "conninfo_t *" },
352 { "nfsv3", "op-readlink-start", 1, 1, "nfsv3oparg_t *",
353 "nfsv3opinfo_t *" },
354 { "nfsv3", "op-readlink-start", 2, 3, "READLINK3args *", NULL },
355 { "nfsv3", "op-readlink-done", 0, 0, "struct svc_req *",
356 "conninfo_t *" },
357 { "nfsv3", "op-readlink-done", 1, 1, "nfsv3oparg_t *",
358 "nfsv3opinfo_t *" },
359 { "nfsv3", "op-readlink-done", 2, 3, "READLINK3res *", NULL },
360 { "nfsv3", "op-remove-start", 0, 0, "struct svc_req *",
361 "conninfo_t *" },
362 { "nfsv3", "op-remove-start", 1, 1, "nfsv3oparg_t *",
363 "nfsv3opinfo_t *" },
364 { "nfsv3", "op-remove-start", 2, 3, "REMOVE3args *", NULL },
365 { "nfsv3", "op-remove-done", 0, 0, "struct svc_req *",
366 "conninfo_t *" },
367 { "nfsv3", "op-remove-done", 1, 1, "nfsv3oparg_t *",
368 "nfsv3opinfo_t *" },
369 { "nfsv3", "op-remove-done", 2, 3, "REMOVE3res *", NULL },
370 { "nfsv3", "op-rename-start", 0, 0, "struct svc_req *",
371 "conninfo_t *" },
372 { "nfsv3", "op-rename-start", 1, 1, "nfsv3oparg_t *",
373 "nfsv3opinfo_t *" },
374 { "nfsv3", "op-rename-start", 2, 3, "RENAME3args *", NULL },
375 { "nfsv3", "op-rename-done", 0, 0, "struct svc_req *",
376 "conninfo_t *" },
377 { "nfsv3", "op-rename-done", 1, 1, "nfsv3oparg_t *",
378 "nfsv3opinfo_t *" },
379 { "nfsv3", "op-rename-done", 2, 3, "RENAME3res *", NULL },
380 { "nfsv3", "op-rmdir-start", 0, 0, "struct svc_req *",
381 "conninfo_t *" },
382 { "nfsv3", "op-rmdir-start", 1, 1, "nfsv3oparg_t *",
383 "nfsv3opinfo_t *" },
384 { "nfsv3", "op-rmdir-start", 2, 3, "RMDIR3args *", NULL },
385 { "nfsv3", "op-rmdir-done", 0, 0, "struct svc_req *",
386 "conninfo_t *" },
387 { "nfsv3", "op-rmdir-done", 1, 1, "nfsv3oparg_t *",
388 "nfsv3opinfo_t *" },
389 { "nfsv3", "op-rmdir-done", 2, 3, "RMDIR3res *", NULL },
390 { "nfsv3", "op-setattr-start", 0, 0, "struct svc_req *",
391 "conninfo_t *" },
392 { "nfsv3", "op-setattr-start", 1, 1, "nfsv3oparg_t *",
393 "nfsv3opinfo_t *" },
394 { "nfsv3", "op-setattr-start", 2, 3, "SETATTR3args *", NULL },
395 { "nfsv3", "op-setattr-done", 0, 0, "struct svc_req *",
396 "conninfo_t *" },
397 { "nfsv3", "op-setattr-done", 1, 1, "nfsv3oparg_t *",
398 "nfsv3opinfo_t *" },
399 { "nfsv3", "op-setattr-done", 2, 3, "SETATTR3res *", NULL },
400 { "nfsv3", "op-symlink-start", 0, 0, "struct svc_req *",
401 "conninfo_t *" },
402 { "nfsv3", "op-symlink-start", 1, 1, "nfsv3oparg_t *",
403 "nfsv3opinfo_t *" },
404 { "nfsv3", "op-symlink-start", 2, 3, "SYMLINK3args *", NULL },
405 { "nfsv3", "op-symlink-done", 0, 0, "struct svc_req *",
406 "conninfo_t *" },
407 { "nfsv3", "op-symlink-done", 1, 1, "nfsv3oparg_t *",
408 "nfsv3opinfo_t *" },
409 { "nfsv3", "op-symlink-done", 2, 3, "SYMLINK3res *", NULL },
410 { "nfsv3", "op-write-start", 0, 0, "struct svc_req *",
411 "conninfo_t *" },
412 { "nfsv3", "op-write-start", 1, 1, "nfsv3oparg_t *",
413 "nfsv3opinfo_t *" },
414 { "nfsv3", "op-write-start", 2, 3, "WRITE3args *", NULL },
415 { "nfsv3", "op-write-done", 0, 0, "struct svc_req *",
416 "conninfo_t *" },
417 { "nfsv3", "op-write-done", 1, 1, "nfsv3oparg_t *",
418 "nfsv3opinfo_t *" },
419 { "nfsv3", "op-write-done", 2, 3, "WRITE3res *", NULL },
420
421 { "nfsv4", "null-start", 0, 0, "struct svc_req *", "conninfo_t *" },
422 { "nfsv4", "null-done", 0, 0, "struct svc_req *", "conninfo_t *" },
423 { "nfsv4", "compound-start", 0, 0, "struct compound_state *",
424 "conninfo_t *" },
425 { "nfsv4", "compound-start", 1, 0, "struct compound_state *",
426 "nfsv4opinfo_t *" },
427 { "nfsv4", "compound-start", 2, 1, "COMPOUND4args *", NULL },
428 { "nfsv4", "compound-done", 0, 0, "struct compound_state *",
429 "conninfo_t *" },
430 { "nfsv4", "compound-done", 1, 0, "struct compound_state *",
431 "nfsv4opinfo_t *" },
432 { "nfsv4", "compound-done", 2, 1, "COMPOUND4res *", NULL },
433 { "nfsv4", "op-access-start", 0, 0, "struct compound_state *",
434 "conninfo_t *"},
435 { "nfsv4", "op-access-start", 1, 0, "struct compound_state *",
436 "nfsv4opinfo_t *" },
437 { "nfsv4", "op-access-start", 2, 1, "ACCESS4args *", NULL },
438 { "nfsv4", "op-access-done", 0, 0, "struct compound_state *",
439 "conninfo_t *" },
440 { "nfsv4", "op-access-done", 1, 0, "struct compound_state *",
441 "nfsv4opinfo_t *" },
442 { "nfsv4", "op-access-done", 2, 1, "ACCESS4res *", NULL },
443 { "nfsv4", "op-close-start", 0, 0, "struct compound_state *",
444 "conninfo_t *" },
445 { "nfsv4", "op-close-start", 1, 0, "struct compound_state *",
446 "nfsv4opinfo_t *" },
447 { "nfsv4", "op-close-start", 2, 1, "CLOSE4args *", NULL },
448 { "nfsv4", "op-close-done", 0, 0, "struct compound_state *",
449 "conninfo_t *" },
450 { "nfsv4", "op-close-done", 1, 0, "struct compound_state *",
451 "nfsv4opinfo_t *" },
452 { "nfsv4", "op-close-done", 2, 1, "CLOSE4res *", NULL },
453 { "nfsv4", "op-commit-start", 0, 0, "struct compound_state *",
454 "conninfo_t *" },
455 { "nfsv4", "op-commit-start", 1, 0, "struct compound_state *",
456 "nfsv4opinfo_t *" },
457 { "nfsv4", "op-commit-start", 2, 1, "COMMIT4args *", NULL },
458 { "nfsv4", "op-commit-done", 0, 0, "struct compound_state *",
459 "conninfo_t *" },
460 { "nfsv4", "op-commit-done", 1, 0, "struct compound_state *",
461 "nfsv4opinfo_t *" },
462 { "nfsv4", "op-commit-done", 2, 1, "COMMIT4res *", NULL },
463 { "nfsv4", "op-create-start", 0, 0, "struct compound_state *",
464 "conninfo_t *" },
465 { "nfsv4", "op-create-start", 1, 0, "struct compound_state *",
466 "nfsv4opinfo_t *" },
467 { "nfsv4", "op-create-start", 2, 1, "CREATE4args *", NULL },
468 { "nfsv4", "op-create-done", 0, 0, "struct compound_state *",
469 "conninfo_t *" },
470 { "nfsv4", "op-create-done", 1, 0, "struct compound_state *",
471 "nfsv4opinfo_t *" },
472 { "nfsv4", "op-create-done", 2, 1, "CREATE4res *", NULL },
473 { "nfsv4", "op-delegpurge-start", 0, 0, "struct compound_state *",
474 "conninfo_t *" },
475 { "nfsv4", "op-delegpurge-start", 1, 0, "struct compound_state *",
476 "nfsv4opinfo_t *" },
477 { "nfsv4", "op-delegpurge-start", 2, 1, "DELEGPURGE4args *", NULL },
478 { "nfsv4", "op-delegpurge-done", 0, 0, "struct compound_state *",
479 "conninfo_t *" },
480 { "nfsv4", "op-delegpurge-done", 1, 0, "struct compound_state *",
481 "nfsv4opinfo_t *" },
482 { "nfsv4", "op-delegpurge-done", 2, 1, "DELEGPURGE4res *", NULL },
483 { "nfsv4", "op-delegreturn-start", 0, 0, "struct compound_state *",
484 "conninfo_t *" },
485 { "nfsv4", "op-delegreturn-start", 1, 0, "struct compound_state *",
486 "nfsv4opinfo_t *" },
487 { "nfsv4", "op-delegreturn-start", 2, 1, "DELEGRETURN4args *", NULL },
488 { "nfsv4", "op-delegreturn-done", 0, 0, "struct compound_state *",
489 "conninfo_t *" },
490 { "nfsv4", "op-delegreturn-done", 1, 0, "struct compound_state *",
491 "nfsv4opinfo_t *" },
492 { "nfsv4", "op-delegreturn-done", 2, 1, "DELEGRETURN4res *", NULL },
493 { "nfsv4", "op-getattr-start", 0, 0, "struct compound_state *",
494 "conninfo_t *" },
495 { "nfsv4", "op-getattr-start", 1, 0, "struct compound_state *",
496 "nfsv4opinfo_t *" },
497 { "nfsv4", "op-getattr-start", 2, 1, "GETATTR4args *", NULL },
498 { "nfsv4", "op-getattr-done", 0, 0, "struct compound_state *",
499 "conninfo_t *" },
500 { "nfsv4", "op-getattr-done", 1, 0, "struct compound_state *",
501 "nfsv4opinfo_t *" },
502 { "nfsv4", "op-getattr-done", 2, 1, "GETATTR4res *", NULL },
503 { "nfsv4", "op-getfh-start", 0, 0, "struct compound_state *",
504 "conninfo_t *" },
505 { "nfsv4", "op-getfh-start", 1, 0, "struct compound_state *",
506 "nfsv4opinfo_t *" },
507 { "nfsv4", "op-getfh-done", 0, 0, "struct compound_state *",
508 "conninfo_t *" },
509 { "nfsv4", "op-getfh-done", 1, 0, "struct compound_state *",
510 "nfsv4opinfo_t *" },
511 { "nfsv4", "op-getfh-done", 2, 1, "GETFH4res *", NULL },
512 { "nfsv4", "op-link-start", 0, 0, "struct compound_state *",
513 "conninfo_t *" },
514 { "nfsv4", "op-link-start", 1, 0, "struct compound_state *",
515 "nfsv4opinfo_t *" },
516 { "nfsv4", "op-link-start", 2, 1, "LINK4args *", NULL },
517 { "nfsv4", "op-link-done", 0, 0, "struct compound_state *",
518 "conninfo_t *" },
519 { "nfsv4", "op-link-done", 1, 0, "struct compound_state *",
520 "nfsv4opinfo_t *" },
521 { "nfsv4", "op-link-done", 2, 1, "LINK4res *", NULL },
522 { "nfsv4", "op-lock-start", 0, 0, "struct compound_state *",
523 "conninfo_t *" },
524 { "nfsv4", "op-lock-start", 1, 0, "struct compound_state *",
525 "nfsv4opinfo_t *" },
526 { "nfsv4", "op-lock-start", 2, 1, "LOCK4args *", NULL },
527 { "nfsv4", "op-lock-done", 0, 0, "struct compound_state *",
528 "conninfo_t *" },
529 { "nfsv4", "op-lock-done", 1, 0, "struct compound_state *",
530 "nfsv4opinfo_t *" },
531 { "nfsv4", "op-lock-done", 2, 1, "LOCK4res *", NULL },
532 { "nfsv4", "op-lockt-start", 0, 0, "struct compound_state *",
533 "conninfo_t *" },
534 { "nfsv4", "op-lockt-start", 1, 0, "struct compound_state *",
535 "nfsv4opinfo_t *" },
536 { "nfsv4", "op-lockt-start", 2, 1, "LOCKT4args *", NULL },
537 { "nfsv4", "op-lockt-done", 0, 0, "struct compound_state *",
538 "conninfo_t *" },
539 { "nfsv4", "op-lockt-done", 1, 0, "struct compound_state *",
540 "nfsv4opinfo_t *" },
541 { "nfsv4", "op-lockt-done", 2, 1, "LOCKT4res *", NULL },
542 { "nfsv4", "op-locku-start", 0, 0, "struct compound_state *",
543 "conninfo_t *" },
544 { "nfsv4", "op-locku-start", 1, 0, "struct compound_state *",
545 "nfsv4opinfo_t *" },
546 { "nfsv4", "op-locku-start", 2, 1, "LOCKU4args *", NULL },
547 { "nfsv4", "op-locku-done", 0, 0, "struct compound_state *",
548 "conninfo_t *" },
549 { "nfsv4", "op-locku-done", 1, 0, "struct compound_state *",
550 "nfsv4opinfo_t *" },
551 { "nfsv4", "op-locku-done", 2, 1, "LOCKU4res *", NULL },
552 { "nfsv4", "op-lookup-start", 0, 0, "struct compound_state *",
553 "conninfo_t *" },
554 { "nfsv4", "op-lookup-start", 1, 0, "struct compound_state *",
555 "nfsv4opinfo_t *" },
556 { "nfsv4", "op-lookup-start", 2, 1, "LOOKUP4args *", NULL },
557 { "nfsv4", "op-lookup-done", 0, 0, "struct compound_state *",
558 "conninfo_t *" },
559 { "nfsv4", "op-lookup-done", 1, 0, "struct compound_state *",
560 "nfsv4opinfo_t *" },
561 { "nfsv4", "op-lookup-done", 2, 1, "LOOKUP4res *", NULL },
562 { "nfsv4", "op-lookupp-start", 0, 0, "struct compound_state *",
563 "conninfo_t *" },
564 { "nfsv4", "op-lookupp-start", 1, 0, "struct compound_state *",
565 "nfsv4opinfo_t *" },
566 { "nfsv4", "op-lookupp-done", 0, 0, "struct compound_state *",
567 "conninfo_t *" },
568 { "nfsv4", "op-lookupp-done", 1, 0, "struct compound_state *",
569 "nfsv4opinfo_t *" },
570 { "nfsv4", "op-lookupp-done", 2, 1, "LOOKUPP4res *", NULL },
571 { "nfsv4", "op-nverify-start", 0, 0, "struct compound_state *",
572 "conninfo_t *" },
573 { "nfsv4", "op-nverify-start", 1, 0, "struct compound_state *",
574 "nfsv4opinfo_t *" },
575 { "nfsv4", "op-nverify-start", 2, 1, "NVERIFY4args *", NULL },
576 { "nfsv4", "op-nverify-done", 0, 0, "struct compound_state *",
577 "conninfo_t *" },
578 { "nfsv4", "op-nverify-done", 1, 0, "struct compound_state *",
579 "nfsv4opinfo_t *" },
580 { "nfsv4", "op-nverify-done", 2, 1, "NVERIFY4res *", NULL },
581 { "nfsv4", "op-open-start", 0, 0, "struct compound_state *",
582 "conninfo_t *" },
583 { "nfsv4", "op-open-start", 1, 0, "struct compound_state *",
584 "nfsv4opinfo_t *" },
585 { "nfsv4", "op-open-start", 2, 1, "OPEN4args *", NULL },
586 { "nfsv4", "op-open-done", 0, 0, "struct compound_state *",
587 "conninfo_t *" },
588 { "nfsv4", "op-open-done", 1, 0, "struct compound_state *",
589 "nfsv4opinfo_t *" },
590 { "nfsv4", "op-open-done", 2, 1, "OPEN4res *", NULL },
591 { "nfsv4", "op-open-confirm-start", 0, 0, "struct compound_state *",
592 "conninfo_t *" },
593 { "nfsv4", "op-open-confirm-start", 1, 0, "struct compound_state *",
594 "nfsv4opinfo_t *" },
595 { "nfsv4", "op-open-confirm-start", 2, 1, "OPEN_CONFIRM4args *", NULL },
596 { "nfsv4", "op-open-confirm-done", 0, 0, "struct compound_state *",
597 "conninfo_t *" },
598 { "nfsv4", "op-open-confirm-done", 1, 0, "struct compound_state *",
599 "nfsv4opinfo_t *" },
600 { "nfsv4", "op-open-confirm-done", 2, 1, "OPEN_CONFIRM4res *", NULL },
601 { "nfsv4", "op-open-downgrade-start", 0, 0, "struct compound_state *",
602 "conninfo_t *" },
603 { "nfsv4", "op-open-downgrade-start", 1, 0, "struct compound_state *",
604 "nfsv4opinfo_t *" },
605 { "nfsv4", "op-open-downgrade-start", 2, 1, "OPEN_DOWNGRADE4args *", NULL },
606 { "nfsv4", "op-open-downgrade-done", 0, 0, "struct compound_state *",
607 "conninfo_t *" },
608 { "nfsv4", "op-open-downgrade-done", 1, 0, "struct compound_state *",
609 "nfsv4opinfo_t *" },
610 { "nfsv4", "op-open-downgrade-done", 2, 1, "OPEN_DOWNGRADE4res *", NULL },
611 { "nfsv4", "op-openattr-start", 0, 0, "struct compound_state *",
612 "conninfo_t *" },
613 { "nfsv4", "op-openattr-start", 1, 0, "struct compound_state *",
614 "nfsv4opinfo_t *" },
615 { "nfsv4", "op-openattr-start", 2, 1, "OPENATTR4args *", NULL },
616 { "nfsv4", "op-openattr-done", 0, 0, "struct compound_state *",
617 "conninfo_t *" },
618 { "nfsv4", "op-openattr-done", 1, 0, "struct compound_state *",
619 "nfsv4opinfo_t *" },
620 { "nfsv4", "op-openattr-done", 2, 1, "OPENATTR4res *", NULL },
621 { "nfsv4", "op-putfh-start", 0, 0, "struct compound_state *",
622 "conninfo_t *" },
623 { "nfsv4", "op-putfh-start", 1, 0, "struct compound_state *",
624 "nfsv4opinfo_t *" },
625 { "nfsv4", "op-putfh-start", 2, 1, "PUTFH4args *", NULL },
626 { "nfsv4", "op-putfh-done", 0, 0, "struct compound_state *",
627 "conninfo_t *" },
628 { "nfsv4", "op-putfh-done", 1, 0, "struct compound_state *",
629 "nfsv4opinfo_t *" },
630 { "nfsv4", "op-putfh-done", 2, 1, "PUTFH4res *", NULL },
631 { "nfsv4", "op-putpubfh-start", 0, 0, "struct compound_state *",
632 "conninfo_t *" },
633 { "nfsv4", "op-putpubfh-start", 1, 0, "struct compound_state *",
634 "nfsv4opinfo_t *" },
635 { "nfsv4", "op-putpubfh-done", 0, 0, "struct compound_state *",
636 "conninfo_t *" },
637 { "nfsv4", "op-putpubfh-done", 1, 0, "struct compound_state *",
638 "nfsv4opinfo_t *" },
639 { "nfsv4", "op-putpubfh-done", 2, 1, "PUTPUBFH4res *", NULL },
640 { "nfsv4", "op-putrootfh-start", 0, 0, "struct compound_state *",
641 "conninfo_t *" },
642 { "nfsv4", "op-putrootfh-start", 1, 0, "struct compound_state *",
643 "nfsv4opinfo_t *" },
644 { "nfsv4", "op-putrootfh-done", 0, 0, "struct compound_state *",
645 "conninfo_t *" },
646 { "nfsv4", "op-putrootfh-done", 1, 0, "struct compound_state *",
647 "nfsv4opinfo_t *" },
648 { "nfsv4", "op-putrootfh-done", 2, 1, "PUTROOTFH4res *", NULL },
649 { "nfsv4", "op-read-start", 0, 0, "struct compound_state *",
650 "conninfo_t *" },
651 { "nfsv4", "op-read-start", 1, 0, "struct compound_state *",
652 "nfsv4opinfo_t *" },
653 { "nfsv4", "op-read-start", 2, 1, "READ4args *", NULL },
654 { "nfsv4", "op-read-done", 0, 0, "struct compound_state *",
655 "conninfo_t *" },
656 { "nfsv4", "op-read-done", 1, 0, "struct compound_state *",
657 "nfsv4opinfo_t *" },
658 { "nfsv4", "op-read-done", 2, 1, "READ4res *", NULL },
659 { "nfsv4", "op-readdir-start", 0, 0, "struct compound_state *",
660 "conninfo_t *" },
661 { "nfsv4", "op-readdir-start", 1, 0, "struct compound_state *",
662 "nfsv4opinfo_t *" },
663 { "nfsv4", "op-readdir-start", 2, 1, "READDIR4args *", NULL },
664 { "nfsv4", "op-readdir-done", 0, 0, "struct compound_state *",
665 "conninfo_t *" },
666 { "nfsv4", "op-readdir-done", 1, 0, "struct compound_state *",
667 "nfsv4opinfo_t *" },
668 { "nfsv4", "op-readdir-done", 2, 1, "READDIR4res *", NULL },
669 { "nfsv4", "op-readlink-start", 0, 0, "struct compound_state *",
670 "conninfo_t *" },
671 { "nfsv4", "op-readlink-start", 1, 0, "struct compound_state *",
672 "nfsv4opinfo_t *" },
673 { "nfsv4", "op-readlink-done", 0, 0, "struct compound_state *",
674 "conninfo_t *" },
675 { "nfsv4", "op-readlink-done", 1, 0, "struct compound_state *",
676 "nfsv4opinfo_t *" },
677 { "nfsv4", "op-readlink-done", 2, 1, "READLINK4res *", NULL },
678 { "nfsv4", "op-release-lockowner-start", 0, 0,
679 "struct compound_state *", "conninfo_t *" },
680 { "nfsv4", "op-release-lockowner-start", 1, 0,
681 "struct compound_state *", "nfsv4opinfo_t *" },
682 { "nfsv4", "op-release-lockowner-start", 2, 1,
683 "RELEASE_LOCKOWNER4args *", NULL },
684 { "nfsv4", "op-release-lockowner-done", 0, 0,
685 "struct compound_state *", "conninfo_t *" },
686 { "nfsv4", "op-release-lockowner-done", 1, 0,
687 "struct compound_state *", "nfsv4opinfo_t *" },
688 { "nfsv4", "op-release-lockowner-done", 2, 1,
689 "RELEASE_LOCKOWNER4res *", NULL },
690 { "nfsv4", "op-remove-start", 0, 0, "struct compound_state *",
691 "conninfo_t *" },
692 { "nfsv4", "op-remove-start", 1, 0, "struct compound_state *",
693 "nfsv4opinfo_t *" },
694 { "nfsv4", "op-remove-start", 2, 1, "REMOVE4args *", NULL },
695 { "nfsv4", "op-remove-done", 0, 0, "struct compound_state *",
696 "conninfo_t *" },
697 { "nfsv4", "op-remove-done", 1, 0, "struct compound_state *",
698 "nfsv4opinfo_t *" },
699 { "nfsv4", "op-remove-done", 2, 1, "REMOVE4res *", NULL },
700 { "nfsv4", "op-rename-start", 0, 0, "struct compound_state *",
701 "conninfo_t *" },
702 { "nfsv4", "op-rename-start", 1, 0, "struct compound_state *",
703 "nfsv4opinfo_t *" },
704 { "nfsv4", "op-rename-start", 2, 1, "RENAME4args *", NULL },
705 { "nfsv4", "op-rename-done", 0, 0, "struct compound_state *",
706 "conninfo_t *" },
707 { "nfsv4", "op-rename-done", 1, 0, "struct compound_state *",
708 "nfsv4opinfo_t *" },
709 { "nfsv4", "op-rename-done", 2, 1, "RENAME4res *", NULL },
710 { "nfsv4", "op-renew-start", 0, 0, "struct compound_state *",
711 "conninfo_t *" },
712 { "nfsv4", "op-renew-start", 1, 0, "struct compound_state *",
713 "nfsv4opinfo_t *" },
714 { "nfsv4", "op-renew-start", 2, 1, "RENEW4args *", NULL },
715 { "nfsv4", "op-renew-done", 0, 0, "struct compound_state *",
716 "conninfo_t *" },
717 { "nfsv4", "op-renew-done", 1, 0, "struct compound_state *",
718 "nfsv4opinfo_t *" },
719 { "nfsv4", "op-renew-done", 2, 1, "RENEW4res *", NULL },
720 { "nfsv4", "op-restorefh-start", 0, 0, "struct compound_state *",
721 "conninfo_t *" },
722 { "nfsv4", "op-restorefh-start", 1, 0, "struct compound_state *",
723 "nfsv4opinfo_t *" },
724 { "nfsv4", "op-restorefh-done", 0, 0, "struct compound_state *",
725 "conninfo_t *" },
726 { "nfsv4", "op-restorefh-done", 1, 0, "struct compound_state *",
727 "nfsv4opinfo_t *" },
728 { "nfsv4", "op-restorefh-done", 2, 1, "RESTOREFH4res *", NULL },
729 { "nfsv4", "op-savefh-start", 0, 0, "struct compound_state *",
730 "conninfo_t *" },
731 { "nfsv4", "op-savefh-start", 1, 0, "struct compound_state *",
732 "nfsv4opinfo_t *" },
733 { "nfsv4", "op-savefh-done", 0, 0, "struct compound_state *",
734 "conninfo_t *" },
735 { "nfsv4", "op-savefh-done", 1, 0, "struct compound_state *",
736 "nfsv4opinfo_t *" },
737 { "nfsv4", "op-savefh-done", 2, 1, "SAVEFH4res *", NULL },
738 { "nfsv4", "op-secinfo-start", 0, 0, "struct compound_state *",
739 "conninfo_t *" },
740 { "nfsv4", "op-secinfo-start", 1, 0, "struct compound_state *",
741 "nfsv4opinfo_t *" },
742 { "nfsv4", "op-secinfo-start", 2, 1, "SECINFO4args *", NULL },
743 { "nfsv4", "op-secinfo-done", 0, 0, "struct compound_state *",
744 "conninfo_t *" },
745 { "nfsv4", "op-secinfo-done", 1, 0, "struct compound_state *",
746 "nfsv4opinfo_t *" },
747 { "nfsv4", "op-secinfo-done", 2, 1, "SECINFO4res *", NULL },
748 { "nfsv4", "op-setattr-start", 0, 0, "struct compound_state *",
749 "conninfo_t *" },
750 { "nfsv4", "op-setattr-start", 1, 0, "struct compound_state *",
751 "nfsv4opinfo_t *" },
752 { "nfsv4", "op-setattr-start", 2, 1, "SETATTR4args *", NULL },
753 { "nfsv4", "op-setattr-done", 0, 0, "struct compound_state *",
754 "conninfo_t *" },
755 { "nfsv4", "op-setattr-done", 1, 0, "struct compound_state *",
756 "nfsv4opinfo_t *" },
757 { "nfsv4", "op-setattr-done", 2, 1, "SETATTR4res *", NULL },
758 { "nfsv4", "op-setclientid-start", 0, 0, "struct compound_state *",
759 "conninfo_t *" },
760 { "nfsv4", "op-setclientid-start", 1, 0, "struct compound_state *",
761 "nfsv4opinfo_t *" },
762 { "nfsv4", "op-setclientid-start", 2, 1, "SETCLIENTID4args *", NULL },
763 { "nfsv4", "op-setclientid-done", 0, 0, "struct compound_state *",
764 "conninfo_t *" },
765 { "nfsv4", "op-setclientid-done", 1, 0, "struct compound_state *",
766 "nfsv4opinfo_t *" },
767 { "nfsv4", "op-setclientid-done", 2, 1, "SETCLIENTID4res *", NULL },
768 { "nfsv4", "op-setclientid-confirm-start", 0, 0,
769 "struct compound_state *", "conninfo_t *" },
770 { "nfsv4", "op-setclientid-confirm-start", 1, 0,
771 "struct compound_state *", "nfsv4opinfo_t *" },
772 { "nfsv4", "op-setclientid-confirm-start", 2, 1,
773 "SETCLIENTID_CONFIRM4args *", NULL },
774 { "nfsv4", "op-setclientid-confirm-done", 0, 0,
775 "struct compound_state *", "conninfo_t *" },
776 { "nfsv4", "op-setclientid-confirm-done", 1, 0,
777 "struct compound_state *", "nfsv4opinfo_t *" },
778 { "nfsv4", "op-setclientid-confirm-done", 2, 1,
779 "SETCLIENTID_CONFIRM4res *", NULL },
780 { "nfsv4", "op-verify-start", 0, 0, "struct compound_state *",
781 "conninfo_t *" },
782 { "nfsv4", "op-verify-start", 1, 0, "struct compound_state *",
783 "nfsv4opinfo_t *" },
784 { "nfsv4", "op-verify-start", 2, 1, "VERIFY4args *", NULL },
785 { "nfsv4", "op-verify-done", 0, 0, "struct compound_state *",
786 "conninfo_t *" },
787 { "nfsv4", "op-verify-done", 1, 0, "struct compound_state *",
788 "nfsv4opinfo_t *" },
789 { "nfsv4", "op-verify-done", 2, 1, "VERIFY4res *", NULL },
790 { "nfsv4", "op-write-start", 0, 0, "struct compound_state *",
791 "conninfo_t *" },
792 { "nfsv4", "op-write-start", 1, 0, "struct compound_state *",
793 "nfsv4opinfo_t *" },
794 { "nfsv4", "op-write-start", 2, 1, "WRITE4args *", NULL },
795 { "nfsv4", "op-write-done", 0, 0, "struct compound_state *",
796 "conninfo_t *" },
797 { "nfsv4", "op-write-done", 1, 0, "struct compound_state *",
798 "nfsv4opinfo_t *" },
799 { "nfsv4", "op-write-done", 2, 1, "WRITE4res *", NULL },
800 { "nfsv4", "cb-recall-start", 0, 0, "rfs4_client_t *",
801 "conninfo_t *" },
802 { "nfsv4", "cb-recall-start", 1, 1, "rfs4_deleg_state_t *",
803 "nfsv4cbinfo_t *" },
804 { "nfsv4", "cb-recall-start", 2, 2, "CB_RECALL4args *", NULL },
805 { "nfsv4", "cb-recall-done", 0, 0, "rfs4_client_t *",
806 "conninfo_t *" },
807 { "nfsv4", "cb-recall-done", 1, 1, "rfs4_deleg_state_t *",
808 "nfsv4cbinfo_t *" },
809 { "nfsv4", "cb-recall-done", 2, 2, "CB_RECALL4res *", NULL },
810
811 { "ip", "send", 0, 0, "mblk_t *", "pktinfo_t *" },
812 { "ip", "send", 1, 1, "conn_t *", "csinfo_t *" },
813 { "ip", "send", 2, 2, "void_ip_t *", "ipinfo_t *" },
814 { "ip", "send", 3, 3, "__dtrace_ipsr_ill_t *", "ifinfo_t *" },
815 { "ip", "send", 4, 4, "ipha_t *", "ipv4info_t *" },
816 { "ip", "send", 5, 5, "ip6_t *", "ipv6info_t *" },
817 { "ip", "send", 6, 6, "int", NULL }, /* used by __dtrace_ipsr_ill_t */
818 { "ip", "receive", 0, 0, "mblk_t *", "pktinfo_t *" },
819 { "ip", "receive", 1, 1, "conn_t *", "csinfo_t *" },
820 { "ip", "receive", 2, 2, "void_ip_t *", "ipinfo_t *" },
821 { "ip", "receive", 3, 3, "__dtrace_ipsr_ill_t *", "ifinfo_t *" },
822 { "ip", "receive", 4, 4, "ipha_t *", "ipv4info_t *" },
823 { "ip", "receive", 5, 5, "ip6_t *", "ipv6info_t *" },
824 { "ip", "receive", 6, 6, "int", NULL }, /* used by __dtrace_ipsr_ill_t */
825
826 { "sysevent", "post", 0, 0, "evch_bind_t *", "syseventchaninfo_t *" },
827 { "sysevent", "post", 1, 1, "sysevent_impl_t *", "syseventinfo_t *" },
828
829 { "xpv", "add-to-physmap-end", 0, 0, "int", NULL },
830 { "xpv", "add-to-physmap-start", 0, 0, "domid_t", NULL },
831 { "xpv", "add-to-physmap-start", 1, 1, "uint_t", NULL },
832 { "xpv", "add-to-physmap-start", 2, 2, "ulong_t", NULL },
833 { "xpv", "add-to-physmap-start", 3, 3, "ulong_t", NULL },
834 { "xpv", "decrease-reservation-end", 0, 0, "int", NULL },
835 { "xpv", "decrease-reservation-start", 0, 0, "domid_t", NULL },
836 { "xpv", "decrease-reservation-start", 1, 1, "ulong_t", NULL },
837 { "xpv", "decrease-reservation-start", 2, 2, "uint_t", NULL },
838 { "xpv", "decrease-reservation-start", 3, 3, "ulong_t *", NULL },
839 { "xpv", "dom-create-start", 0, 0, "xen_domctl_t *", NULL },
840 { "xpv", "dom-destroy-start", 0, 0, "domid_t", NULL },
841 { "xpv", "dom-pause-start", 0, 0, "domid_t", NULL },
842 { "xpv", "dom-unpause-start", 0, 0, "domid_t", NULL },
843 { "xpv", "dom-create-end", 0, 0, "int", NULL },
844 { "xpv", "dom-destroy-end", 0, 0, "int", NULL },
845 { "xpv", "dom-pause-end", 0, 0, "int", NULL },
846 { "xpv", "dom-unpause-end", 0, 0, "int", NULL },
847 { "xpv", "evtchn-op-end", 0, 0, "int", NULL },
848 { "xpv", "evtchn-op-start", 0, 0, "int", NULL },
849 { "xpv", "evtchn-op-start", 1, 1, "void *", NULL },
850 { "xpv", "increase-reservation-end", 0, 0, "int", NULL },
851 { "xpv", "increase-reservation-start", 0, 0, "domid_t", NULL },
852 { "xpv", "increase-reservation-start", 1, 1, "ulong_t", NULL },
853 { "xpv", "increase-reservation-start", 2, 2, "uint_t", NULL },
854 { "xpv", "increase-reservation-start", 3, 3, "ulong_t *", NULL },
855 { "xpv", "mmap-end", 0, 0, "int", NULL },
856 { "xpv", "mmap-entry", 0, 0, "ulong_t", NULL },
857 { "xpv", "mmap-entry", 1, 1, "ulong_t", NULL },
858 { "xpv", "mmap-entry", 2, 2, "ulong_t", NULL },
859 { "xpv", "mmap-start", 0, 0, "domid_t", NULL },
860 { "xpv", "mmap-start", 1, 1, "int", NULL },
861 { "xpv", "mmap-start", 2, 2, "privcmd_mmap_entry_t *", NULL },
862 { "xpv", "mmapbatch-end", 0, 0, "int", NULL },
863 { "xpv", "mmapbatch-end", 1, 1, "struct seg *", NULL },
864 { "xpv", "mmapbatch-end", 2, 2, "caddr_t", NULL },
865 { "xpv", "mmapbatch-start", 0, 0, "domid_t", NULL },
866 { "xpv", "mmapbatch-start", 1, 1, "int", NULL },
867 { "xpv", "mmapbatch-start", 2, 2, "caddr_t", NULL },
868 { "xpv", "mmu-ext-op-end", 0, 0, "int", NULL },
869 { "xpv", "mmu-ext-op-start", 0, 0, "int", NULL },
870 { "xpv", "mmu-ext-op-start", 1, 1, "struct mmuext_op *" , NULL},
871 { "xpv", "mmu-update-start", 0, 0, "int", NULL },
872 { "xpv", "mmu-update-start", 1, 1, "int", NULL },
873 { "xpv", "mmu-update-start", 2, 2, "mmu_update_t *", NULL },
874 { "xpv", "mmu-update-end", 0, 0, "int", NULL },
875 { "xpv", "populate-physmap-end", 0, 0, "int" , NULL},
876 { "xpv", "populate-physmap-start", 0, 0, "domid_t" , NULL},
877 { "xpv", "populate-physmap-start", 1, 1, "ulong_t" , NULL},
878 { "xpv", "populate-physmap-start", 2, 2, "ulong_t *" , NULL},
879 { "xpv", "set-memory-map-end", 0, 0, "int" , NULL},
880 { "xpv", "set-memory-map-start", 0, 0, "domid_t" , NULL},
881 { "xpv", "set-memory-map-start", 1, 1, "int", NULL },
882 { "xpv", "set-memory-map-start", 2, 2, "struct xen_memory_map *", NULL },
883 { "xpv", "setvcpucontext-end", 0, 0, "int", NULL },
884 { "xpv", "setvcpucontext-start", 0, 0, "domid_t", NULL },
885 { "xpv", "setvcpucontext-start", 1, 1, "vcpu_guest_context_t *", NULL },
886 #if !defined(__APPLE__)
887 { NULL }
888 #else
889 { NULL, NULL, 0, 0, NULL, NULL }
890 #endif /* __APPLE__ */
891 };
892
893 /*ARGSUSED*/
894 void
895 sdt_getargdesc(void *arg, dtrace_id_t id, void *parg, dtrace_argdesc_t *desc)
896 {
897 #pragma unused(arg, id)
898 sdt_probe_t *sdp = parg;
899 int i;
900
901 desc->dtargd_native[0] = '\0';
902 desc->dtargd_xlate[0] = '\0';
903
904 for (i = 0; sdt_args[i].sda_provider != NULL; i++) {
905 sdt_argdesc_t *a = &sdt_args[i];
906
907 #if !defined(__APPLE__)
908 if (strcmp(sdp->sdp_provider->sdtp_name, a->sda_provider) != 0)
909 continue;
910
911 if (a->sda_name != NULL &&
912 strcmp(sdp->sdp_name, a->sda_name) != 0)
913 continue;
914
915 if (desc->dtargd_ndx != a->sda_ndx)
916 continue;
917
918 if (a->sda_native != NULL)
919 (void) strcpy(desc->dtargd_native, a->sda_native);
920
921 if (a->sda_xlate != NULL)
922 (void) strcpy(desc->dtargd_xlate, a->sda_xlate);
923 #else
924 if (strncmp(sdp->sdp_provider->sdtp_name, a->sda_provider, strlen(a->sda_provider) + 1) != 0)
925 continue;
926
927 if (a->sda_name != NULL &&
928 strncmp(sdp->sdp_name, a->sda_name, strlen(a->sda_name) + 1) != 0)
929 continue;
930
931 if (desc->dtargd_ndx != a->sda_ndx)
932 continue;
933
934 if (a->sda_native != NULL)
935 (void) strlcpy(desc->dtargd_native, a->sda_native, DTRACE_ARGTYPELEN);
936
937 if (a->sda_xlate != NULL)
938 (void) strlcpy(desc->dtargd_xlate, a->sda_xlate, DTRACE_ARGTYPELEN);
939 #endif /* __APPLE__ */
940
941 desc->dtargd_mapping = a->sda_mapping;
942 return;
943 }
944
945 desc->dtargd_ndx = DTRACE_ARGNONE;
946 }