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.
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.
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]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #
pragma ident
"%Z%%M% %I% %E% SMI"
30 * ASSERTION: Make sure nfsv3 provider probes are firing, and that the
31 * arguments are properly visible.
33 * SECTION: nfs3 provider
36 #
pragma D option destructive
37 #
pragma D option quiet
39 pid
$1:a
.out:waiting
:entry
41 this->value
= (int *)alloca(sizeof (int));
43 copyout(this->value
, arg0
, sizeof (int));
46 nfsv3
:::op
-getattr
-start
48 printf("ci_local: %s\n", args
[0]->ci_local
);
49 printf("ci_remote: %s\n", args
[0]->ci_remote
);
50 printf("ci_protocol: %s\n", args
[0]->ci_protocol
);
52 printf("noi_xid: %d\n", args
[1]->noi_xid
);
53 printf("noi_cred->cr_uid: %d\n", args
[1]->noi_cred
->cr_uid
);
54 printf("noi_curpath: %s\n", args
[1]->noi_curpath
);
56 printf("fh3_flags: %d\n", args
[2]->object
.fh3_flags
);
59 nfsv3
:::op
-getattr
-done
61 printf("ci_local: %s\n", args
[0]->ci_local
);
62 printf("ci_remote: %s\n", args
[0]->ci_remote
);
63 printf("ci_protocol: %s\n", args
[0]->ci_protocol
);
65 printf("noi_xid: %d\n", args
[1]->noi_xid
);
66 printf("noi_cred->cr_uid: %d\n", args
[1]->noi_cred
->cr_uid
);
67 printf("noi_curpath: %s\n", args
[1]->noi_curpath
);
69 printf("status: %d\n", args
[2]->status
);
73 /seen
[probename
] == 0/
77 printf("%d ops seen, latest op is %s\n", numberseen
, probename
);
89 printf("%d nfsv3 ops seen; should be 22\n", numberseen
);