smb3: add tracepoint for slow responses
authorSteve French <stfrench@microsoft.com>
Wed, 1 Aug 2018 21:38:07 +0000 (16:38 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Aug 2018 19:28:01 +0000 (14:28 -0500)
commit020eec5f712ffb4254233490076cc21600b810db
tree9d32f5f44706a3d54991eaaa2b0c5b9f81fd13bb
parente0bba0b8548179b696e86c158ea8f45f2ef6ad14
smb3: add tracepoint for slow responses

If responses take longer than one second from the server,
we can optionally log them to dmesg in current cifs.ko code
(CONFIG_CIFS_STATS2 must be configured and a
/proc/fs/cifs/cifsFYI flag must be set), but can be more useful
to log these via ftrace (tracepoint is smb3_slow_rsp) which
is easier and more granular (still requires CONFIG_CIFS_STATS2
to be configured in the build though).

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/trace.h
fs/cifs/transport.c