cifs.d revision 148c5f43199ca0b43fc8e3b643aab11cd66ea327
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
#pragma D option flowindent
*/
/*
* Usage: ./cifs.d -p `pgrep smbd`
*
* On multi-processor systems, it may be easier to follow the output
* if run on a single processor: see psradm. For example, to disable
* the second processor on a dual-processor system: psradm -f 1
*/
{
printf("CIFS Trace Started");
printf("\n\n");
}
{
printf("CIFS Trace Ended");
printf("\n\n");
}
{
printf("cmd=%d [uid=%d tid=%d]",
}
{
printf("cmd[%d]: status=0x%08x (class=%d code=%d)",
}
{
printf("dialect=%s index=%u caps=0x%08x maxmpx=%u tz=%d time=%u",
printf(" [status=0x%08x (class=%d code=%d)]",
}
{
printf("[%s] %s %s %s",
printf(" maxmpx=%u vc=%u maxbuf=%u",
}
{
printf("%s/%s: smbuid=%d (%s)",
printf(" [status=0x%08x (class=%d code=%d)]",
}
{
}
{
printf("[%s] %s",
}
{
printf(" [status=0x%08x (class=%d code=%d)]",
}
{
}
{
}
{
printf("%s: fid=%u",
}
{
printf("fid=%d: %u bytes at offset %u",
}
{
printf("fid=%d: %u bytes at offset %u",
}
{
printf("%s to %s",
}
{
}
/*
smb_dispatch_request:entry,
smb_dispatch_request:return,
smb_pre_*:return,
smb_com_*:return,
smb_post_*:return,
smbsr_status:return,
smbsr_errno:return
{
}
smb_pre_*:entry,
smb_com_*:entry,
smb_post_*:entry
{
sr = (struct smb_request *)arg0;
printf("cmd=%d [uid=%d tid=%d]",
sr->smb_com, sr->smb_uid, sr->smb_tid);
}
smbsr_status:entry
{
printf("status=0x%08x class=%d, code=%d\n", arg1, arg2, arg3);
}
smbsr_errno:entry
{
printf("errno=%d\n", arg1);
}
*/