diff options
author | Steve French <stfrench@microsoft.com> | 2023-09-01 09:29:17 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-09-07 08:05:56 +0300 |
commit | feeec636b6b1cf3e6129e645411751b205c44976 (patch) | |
tree | f735079e09931f467048093d2fd1e1045c64c9fa /fs/smb | |
parent | f48d4d35ad7b965d7945df75a34eec20761612f2 (diff) | |
download | linux-feeec636b6b1cf3e6129e645411751b205c44976.tar.xz |
smb3: add trace point for queryfs (statfs)
In debugging a recent performance problem with statfs, it would have
been helpful to be able to trace the smb3 query fs info request
more narrowly. Add a trace point "smb3_qfs_done"
Which displays:
stat-68950 [008] ..... 1472.360598: smb3_qfs_done: xid=14 sid=0xaa9765e4 tid=0x95a76f54 unc_name=\\localhost\test rc=0
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb')
-rw-r--r-- | fs/smb/client/smb2ops.c | 1 | ||||
-rw-r--r-- | fs/smb/client/trace.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/smb/client/smb2ops.c b/fs/smb/client/smb2ops.c index e3dd698854d6..d9eda2e958b4 100644 --- a/fs/smb/client/smb2ops.c +++ b/fs/smb/client/smb2ops.c @@ -2683,6 +2683,7 @@ smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, smb2_copy_fs_info_to_kstatfs(info, buf); qfs_exit: + trace_smb3_qfs_done(xid, tcon->tid, tcon->ses->Suid, tcon->tree_name, rc); free_rsp_buf(buftype, rsp_iov.iov_base); return rc; } diff --git a/fs/smb/client/trace.h b/fs/smb/client/trace.h index e671bd16f00c..a7e4755bed0f 100644 --- a/fs/smb/client/trace.h +++ b/fs/smb/client/trace.h @@ -691,7 +691,7 @@ DEFINE_EVENT(smb3_tcon_class, smb3_##name, \ TP_ARGS(xid, tid, sesid, unc_name, rc)) DEFINE_SMB3_TCON_EVENT(tcon); - +DEFINE_SMB3_TCON_EVENT(qfs_done); /* * For smb2/smb3 open (including create and mkdir) calls |