]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf5cc37c7f3c6428dd411a8c7cee97411bce6987
tree9d32f5f44706a3d54991eaaa2b0c5b9f81fd13bb
parente961ef49ebf8b713802c2908c9888e2df2262046
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