Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

smb3 client: add missing tracepoint for unsupported ioctls

In debugging a recent problem with an xfstest, noticed that we weren't
tracing cases where the ioctl was not supported. Add dynamic tracepoint:
"trace-cmd record -e smb3_unsupported_ioctl"
and then after running an app which calls unsupported ioctl,
"trace-cmd show"would display e.g.
xfs_io-7289 [012] ..... 1205.137765: smb3_unsupported_ioctl: xid=19 fid=0x4535bb84 ioctl cmd=0x801c581f

Acked-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>

+4
+3
fs/smb/client/ioctl.c
··· 588 588 break; 589 589 default: 590 590 cifs_dbg(FYI, "unsupported ioctl\n"); 591 + trace_smb3_unsupported_ioctl(xid, 592 + pSMBFile ? pSMBFile->fid.persistent_fid : 0, 593 + command); 591 594 break; 592 595 } 593 596 cifs_ioc_exit:
+1
fs/smb/client/trace.h
··· 1579 1579 TP_ARGS(xid, fid, command)) 1580 1580 1581 1581 DEFINE_SMB3_IOCTL_EVENT(ioctl); 1582 + DEFINE_SMB3_IOCTL_EVENT(unsupported_ioctl); 1582 1583 1583 1584 DECLARE_EVENT_CLASS(smb3_shutdown_class, 1584 1585 TP_PROTO(__u32 flags,