smb3: add dynamic trace point for ioctls
[sfrench/cifs-2.6.git] / fs / smb / client / trace.h
index ce90ae0d77f84918916083428793aa4ec07650ee..f9c1fd32d0b8c3d5cc34ad11895a8c302039cf73 100644 (file)
@@ -1032,6 +1032,38 @@ DEFINE_EVENT(smb3_ses_class, smb3_##name,  \
 
 DEFINE_SMB3_SES_EVENT(ses_not_found);
 
+DECLARE_EVENT_CLASS(smb3_ioctl_class,
+       TP_PROTO(unsigned int xid,
+               __u64   fid,
+               unsigned int command),
+       TP_ARGS(xid, fid, command),
+       TP_STRUCT__entry(
+               __field(unsigned int, xid)
+               __field(__u64, fid)
+               __field(unsigned int, command)
+       ),
+       TP_fast_assign(
+               __entry->xid = xid;
+               __entry->fid = fid;
+               __entry->command = command;
+       ),
+       TP_printk("xid=%u fid=0x%llx ioctl cmd=0x%x",
+               __entry->xid, __entry->fid, __entry->command)
+)
+
+#define DEFINE_SMB3_IOCTL_EVENT(name)        \
+DEFINE_EVENT(smb3_ioctl_class, smb3_##name,  \
+       TP_PROTO(unsigned int xid,           \
+               __u64 fid,                   \
+               unsigned int command),       \
+       TP_ARGS(xid, fid, command))
+
+DEFINE_SMB3_IOCTL_EVENT(ioctl);
+
+
+
+
+
 DECLARE_EVENT_CLASS(smb3_credit_class,
        TP_PROTO(__u64  currmid,
                __u64 conn_id,