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]
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #
pragma ident
"%Z%%M% %I% %E% SMI"
31 printf("-->SMB Server Node Trace Started");
37 printf("<--SMB Server Node Trace Ended");
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
);
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
);
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
);
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
);
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
);
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
);
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
);
109 sdt
:smbsrv
:smb_node_delete_on_close
:smb_node_delete_on_close
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
);
118 sdt
:smbsrv
:smb_node_delete_on_close
:smb_node_delete_on_close
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
);