summaryrefslogtreecommitdiffstats
path: root/fs/cifs/trace.h
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2019-02-25 07:52:43 +0100
committerSteve French <stfrench@microsoft.com>2019-03-06 01:10:04 +0100
commitd323c24617527f28cdb03f3bb7d8f9b62eecee80 (patch)
tree6e0d6b0b4e91e101d6607a9417e12bf7fcd04379 /fs/cifs/trace.h
parentsmb3: add tracepoints for query dir (diff)
downloadlinux-d323c24617527f28cdb03f3bb7d8f9b62eecee80.tar.xz
linux-d323c24617527f28cdb03f3bb7d8f9b62eecee80.zip
smb3: Add tracepoints for read, write and query_dir enter
Allows tracing begin (not just completion) of read, write and query_dir which may be helpful in finding slow requests and other timing information Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/trace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/trace.h b/fs/cifs/trace.h
index bf4f43f6893b..660176e34dde 100644
--- a/fs/cifs/trace.h
+++ b/fs/cifs/trace.h
@@ -101,6 +101,9 @@ DEFINE_EVENT(smb3_rw_done_class, smb3_##name, \
__u32 len), \
TP_ARGS(xid, fid, tid, sesid, offset, len))
+DEFINE_SMB3_RW_DONE_EVENT(write_enter);
+DEFINE_SMB3_RW_DONE_EVENT(read_enter);
+DEFINE_SMB3_RW_DONE_EVENT(query_dir_enter);
DEFINE_SMB3_RW_DONE_EVENT(write_done);
DEFINE_SMB3_RW_DONE_EVENT(read_done);
DEFINE_SMB3_RW_DONE_EVENT(query_dir_done);