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 BEGIN 28 { 29 printf("\n-->SMB Server VFS Trace Started"); 30 printf("\n\n"); 31 } 32 33 END 34 { 35 printf("\n<--SMB Server VFS Trace Ended"); 36 printf("\n\n"); 37 } 38 39 sdt:smbsrv:smb_vfs_hold:smb_vfs_hold_hit 40 { 41 printf("\nSMB VFS lookup hit"); 42 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 43 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt); 44 } 45 46 sdt:smbsrv:smb_vfs_hold:smb_vfs_hold_miss 47 { 48 printf("\nSMB VFS lookup miss"); 49 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 50 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt); 51 } 52 53 sdt:smbsrv:smb_vfs_rele:smb_vfs_release 54 /(smb_vfs_t *)arg0 != 0/ 55 { 56 printf("\nSMB VFS release hit"); 57 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 58 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt - 2); 59 } 60 61 sdt:smbsrv:smb_vfs_rele:smb_vfs_release 62 /(smb_vfs_t *)arg0 == 0/ 63 { 64 printf("\nSMB VFS release miss"); 65 printf("\n Path: %s", (string)((vnode_t *)arg1)->v_path); 66 } 67 68 sdt:smbsrv:smb_vfs_rele_all:smb_vfs_rele_all_hit 69 { 70 printf("\nSMB VFS free"); 71 printf("\n Path: %s", (string)((smb_vfs_t *)arg0)->sv_rootvp->v_path); 72 printf("\n RefCount: %d", ((smb_vfs_t *)arg0)->sv_refcnt); 73 } 74 75 76