1178476Sjb/* 2178476Sjb * CDDL HEADER START 3178476Sjb * 4178476Sjb * The contents of this file are subject to the terms of the 5178476Sjb * Common Development and Distribution License (the "License"). 6178476Sjb * You may not use this file except in compliance with the License. 7178476Sjb * 8178476Sjb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9178476Sjb * or http://www.opensolaris.org/os/licensing. 10178476Sjb * See the License for the specific language governing permissions 11178476Sjb * and limitations under the License. 12178476Sjb * 13178476Sjb * When distributing Covered Code, include this CDDL HEADER in each 14178476Sjb * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15178476Sjb * If applicable, add the following below this CDDL HEADER, with the 16178476Sjb * fields enclosed by brackets "[]" replaced with your own identifying 17178476Sjb * information: Portions Copyright [yyyy] [name of copyright owner] 18178476Sjb * 19178476Sjb * CDDL HEADER END 20178476Sjb */ 21178476Sjb 22178476Sjb/* 23178476Sjb * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24178476Sjb * Use is subject to license terms. 25178476Sjb */ 26178476Sjb 27178476Sjb#pragma ident "%Z%%M% %I% %E% SMI" 28178476Sjb 29178476Sjb/* 30178476Sjb * ASSERTION: Make sure nfsv3 provider probes are firing, and that the 31178476Sjb * arguments are properly visible. 32178476Sjb * 33178476Sjb * SECTION: nfs3 provider 34178476Sjb */ 35178476Sjb 36178476Sjb#pragma D option destructive 37178476Sjb#pragma D option quiet 38178476Sjb 39178476Sjbpid$1:a.out:waiting:entry 40178476Sjb{ 41178476Sjb this->value = (int *)alloca(sizeof (int)); 42178476Sjb *this->value = 1; 43178476Sjb copyout(this->value, arg0, sizeof (int)); 44178476Sjb} 45178476Sjb 46178476Sjbnfsv3:::op-getattr-start 47178476Sjb{ 48178476Sjb printf("ci_local: %s\n", args[0]->ci_local); 49178476Sjb printf("ci_remote: %s\n", args[0]->ci_remote); 50178476Sjb printf("ci_protocol: %s\n", args[0]->ci_protocol); 51178476Sjb 52178476Sjb printf("noi_xid: %d\n", args[1]->noi_xid); 53178476Sjb printf("noi_cred->cr_uid: %d\n", args[1]->noi_cred->cr_uid); 54178476Sjb printf("noi_curpath: %s\n", args[1]->noi_curpath); 55178476Sjb 56178476Sjb printf("fh3_flags: %d\n", args[2]->object.fh3_flags); 57178476Sjb} 58178476Sjb 59178476Sjbnfsv3:::op-getattr-done 60178476Sjb{ 61178476Sjb printf("ci_local: %s\n", args[0]->ci_local); 62178476Sjb printf("ci_remote: %s\n", args[0]->ci_remote); 63178476Sjb printf("ci_protocol: %s\n", args[0]->ci_protocol); 64178476Sjb 65178476Sjb printf("noi_xid: %d\n", args[1]->noi_xid); 66178476Sjb printf("noi_cred->cr_uid: %d\n", args[1]->noi_cred->cr_uid); 67178476Sjb printf("noi_curpath: %s\n", args[1]->noi_curpath); 68178476Sjb 69178476Sjb printf("status: %d\n", args[2]->status); 70178476Sjb} 71178476Sjb 72178476Sjbnfsv3:::*-done 73178476Sjb/seen[probename] == 0/ 74178476Sjb{ 75178476Sjb ++numberseen; 76178476Sjb seen[probename] = 1; 77178476Sjb printf("%d ops seen, latest op is %s\n", numberseen, probename); 78178476Sjb} 79178476Sjb 80178476Sjbnfsv3:::*-done 81178476Sjb/numberseen == 22/ 82178476Sjb{ 83178476Sjb exit(0); 84178476Sjb} 85178476Sjb 86178476Sjbtick-1s 87178476Sjb/tick++ == 10/ 88178476Sjb{ 89178476Sjb printf("%d nfsv3 ops seen; should be 22\n", numberseen); 90178476Sjb exit(1); 91178476Sjb} 92