summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/trace.h
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2023-06-27 06:22:20 +0000
committerSteve French <stfrench@microsoft.com>2023-06-29 09:58:09 -0500
commit61986a58bc6abbb1aea26e52bd269f49e5bacf19 (patch)
tree7392205e8113bb59a1017125d06db5df7929ff24 /fs/smb/client/trace.h
parentac615db03ba508d42d240612262f21f2e5836b67 (diff)
downloadlinux-stable-61986a58bc6abbb1aea26e52bd269f49e5bacf19.tar.gz
linux-stable-61986a58bc6abbb1aea26e52bd269f49e5bacf19.tar.bz2
linux-stable-61986a58bc6abbb1aea26e52bd269f49e5bacf19.zip
cifs: new dynamic tracepoint to track ses not found errors
It is perfectly valid to not find session not found errors when a reconnect of a session happens when requests for the same session are happening in parallel. We had these log messages as VFS logs. My last change dumped these logs as FYI logs. This change just creates a new dynamic tracepoint to capture events of this type, just in case it is useful while debugging issues in the future. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/trace.h')
-rw-r--r--fs/smb/client/trace.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/fs/smb/client/trace.h b/fs/smb/client/trace.h
index d3053bd8ae73..e671bd16f00c 100644
--- a/fs/smb/client/trace.h
+++ b/fs/smb/client/trace.h
@@ -1003,6 +1003,26 @@ DEFINE_EVENT(smb3_reconnect_class, smb3_##name, \
DEFINE_SMB3_RECONNECT_EVENT(reconnect);
DEFINE_SMB3_RECONNECT_EVENT(partial_send_reconnect);
+DECLARE_EVENT_CLASS(smb3_ses_class,
+ TP_PROTO(__u64 sesid),
+ TP_ARGS(sesid),
+ TP_STRUCT__entry(
+ __field(__u64, sesid)
+ ),
+ TP_fast_assign(
+ __entry->sesid = sesid;
+ ),
+ TP_printk("sid=0x%llx",
+ __entry->sesid)
+)
+
+#define DEFINE_SMB3_SES_EVENT(name) \
+DEFINE_EVENT(smb3_ses_class, smb3_##name, \
+ TP_PROTO(__u64 sesid), \
+ TP_ARGS(sesid))
+
+DEFINE_SMB3_SES_EVENT(ses_not_found);
+
DECLARE_EVENT_CLASS(smb3_credit_class,
TP_PROTO(__u64 currmid,
__u64 conn_id,