diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2020-11-12 08:56:49 -0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-15 16:56:04 -0600 |
commit | cd7b699b0198a7fc24f6dc79985f6151f589518c (patch) | |
tree | e6c1784b3762eeb5cd1642c983579a32958bdd5f /fs/cifs/trace.h | |
parent | 6cf5abbfa8c8a2826d56e38ed1956a0e2f0c85b9 (diff) | |
download | lwn-cd7b699b0198a7fc24f6dc79985f6151f589518c.tar.gz lwn-cd7b699b0198a7fc24f6dc79985f6151f589518c.zip |
cifs: Tracepoints and logs for tracing credit changes.
There is at least one suspected bug in crediting changes in cifs.ko
which has come up a few times in the discussions and in a customer
case.
This change adds tracepoints to the code which modifies the server
credit values in any way. The goal is to be able to track the changes
to the credit values of the session to be able to catch when there is
a crediting bug.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/trace.h')
-rw-r--r-- | fs/cifs/trace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/trace.h b/fs/cifs/trace.h index 90e0fab69bb8..c3d1a584f251 100644 --- a/fs/cifs/trace.h +++ b/fs/cifs/trace.h @@ -909,8 +909,12 @@ DEFINE_EVENT(smb3_credit_class, smb3_##name, \ TP_ARGS(currmid, hostname, credits, credits_to_add)) DEFINE_SMB3_CREDIT_EVENT(reconnect_with_invalid_credits); +DEFINE_SMB3_CREDIT_EVENT(reconnect_detected); DEFINE_SMB3_CREDIT_EVENT(credit_timeout); +DEFINE_SMB3_CREDIT_EVENT(insufficient_credits); +DEFINE_SMB3_CREDIT_EVENT(too_many_credits); DEFINE_SMB3_CREDIT_EVENT(add_credits); +DEFINE_SMB3_CREDIT_EVENT(set_credits); #endif /* _CIFS_TRACE_H */ |