1 #!/usr/sbin/dtrace -qs 2 /* 3 * CDDL HEADER START 4 * 5 * The contents of this file are subject to the terms of the 6 * Common Development and Distribution License (the "License"). 7 * You may not use this file except in compliance with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #pragma ident "%Z%%M% %I% %E% SMI" 28 29 BEGIN 30 { 31 printf("\n-->SMB Server VFS Trace Started"); 32 printf("\n\n"); 33 } 34 35 END 36 { 37 printf("\n<--SMB Server VFS Trace Ended"); 38 printf("\n\n"); 39 } 40 41 sdt:smbsrv:smb_vfs_hold:smb_vfs_hold_hit 42 { 43 printf("\nSMB VFS lookup hit"); 44 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 45 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt); 46 } 47 48 sdt:smbsrv:smb_vfs_hold:smb_vfs_hold_miss 49 { 50 printf("\nSMB VFS lookup miss"); 51 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 52 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt); 53 } 54 55 sdt:smbsrv:smb_vfs_rele:smb_vfs_release 56 /(smb_vfs_t *)arg0 != 0/ 57 { 58 printf("\nSMB VFS release hit"); 59 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 60 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt - 2); 61 } 62 63 sdt:smbsrv:smb_vfs_rele:smb_vfs_release 64 /(smb_vfs_t *)arg0 == 0/ 65 { 66 printf("\nSMB VFS release miss"); 67 printf("\n Path: %s", (string)((vnode_t *)arg1)->v_path); 68 } 69 70 sdt:smbsrv:smb_vfs_rele_all:smb_vfs_rele_all_hit 71 { 72 printf("\nSMB VFS free"); 73 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 74 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt); 75 } 76 77 78