dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / smbsrv / dtrace / smbnode.d
blob1e4bdc8cb4c61c6b0def7da2422259bb99fa4f31
1 #!/usr/sbin/dtrace -qs
2 /*
3 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
29 BEGIN
31 printf("-->SMB Server Node Trace Started");
32 printf("\n\n");
35 END
37 printf("<--SMB Server Node Trace Ended");
38 printf("\n\n");
41 sdt:smbsrv:smb_node_lookup:smb_node_lookup_hit
42 /((smb_node_t *)arg0)->n_state == SMB_NODE_STATE_AVAILABLE/
44 printf("\nSMB Node lookup hit/SMB_NODE_STATE_AVAILABLE");
45 printf("\n\tNode: %p", arg0);
46 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
47 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
48 stack();
51 sdt:smbsrv:smb_node_lookup:smb_node_lookup_hit
52 /((smb_node_t *)arg0)->n_state == SMB_NODE_STATE_DESTROYING/
54 printf("\nSMB Node lookup hit/SMB_NODE_STATE_DESTROYING");
55 printf("\n\tNode: %p", arg0);
56 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
57 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
58 stack();
61 sdt:smbsrv:smb_node_lookup:smb_node_lookup_hit
62 /(((smb_node_t *)arg0)->n_state != SMB_NODE_STATE_DESTROYING) &&
63 (((smb_node_t *)arg0)->n_state != SMB_NODE_STATE_AVAILABLE)/
65 printf("\nSMB Node lookup hit/Unknown State");
66 printf("\n\tNode: %p", arg0);
67 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
68 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
69 stack();
72 sdt:smbsrv:smb_node_lookup:smb_node_lookup_miss
74 printf("\nSMB Node lookup miss");
75 printf("\n\tNode: %p", arg0);
76 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
77 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
78 stack();
81 sdt:smbsrv:smb_node_ref:smb_node_ref_exit
83 printf("\nSMB Node reference taken");
84 printf("\n\tNode: %p", arg0);
85 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
86 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
87 stack();
90 sdt:smbsrv:smb_node_release:smb_node_release
91 /((smb_node_t *)arg0)->n_refcnt == 1/
93 printf("\nSMB Node release(will be destroyed)");
94 printf("\n\tNode: %p", arg0);
95 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
96 stack();
99 sdt:smbsrv:smb_node_release:smb_node_release
100 /((smb_node_t *)arg0)->n_refcnt > 1/
102 printf("\nSMB Node release");
103 printf("\n\tNode: %p", arg0);
104 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
105 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
106 stack();
109 sdt:smbsrv:smb_node_delete_on_close:smb_node_delete_on_close
110 /(int)arg0 == 0/
112 printf("\nSMB Node delete on close successful");
113 printf("\n\tNode: %p", arg1);
114 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg1)->vp)->v_path);
115 stack();
118 sdt:smbsrv:smb_node_delete_on_close:smb_node_delete_on_close
119 /(int)arg0 == 0/
121 printf("\nSMB Node delete on close failed (%d)", (int)arg0);
122 printf("\n\tNode: %p", arg1);
123 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg1)->vp)->v_path);
124 stack();