smb3: add tracepoints for smb2/smb3 open
authorSteve French <stfrench@microsoft.com>
Thu, 31 May 2018 02:42:34 +0000 (21:42 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 31 May 2018 02:42:34 +0000 (21:42 -0500)
commit28d59363ae746d01e7841479da718631f941353d
tree0dfaaafe4bcd4a1d348e7293619bbb35d3e15489
parent5c5a41be89e87c3a9ce2fed3c818770ef12bd2bb
smb3: add tracepoints for smb2/smb3 open

add two tracepoints for open completion. One for error one for completion (open_done).
Sample output below

            TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
               | |       |   ||||       |         |
            bash-15348 [007] .... 42441.027492: smb3_enter:  cifs_lookup: xid=45
            bash-15348 [007] .... 42441.028214: smb3_cmd_err:  sid=0x6173e4ce tid=0xa05150e6 cmd=5 mid=105 status=0xc0000034 rc=-2
            bash-15348 [007] .... 42441.028219: smb3_open_err: xid=45 sid=0x6173e4ce tid=0xa05150e6 cr_opts=0x0 des_access=0x80 rc=-2
            bash-15348 [007] .... 42441.028225: smb3_exit_done:  cifs_lookup: xid=45
          fop777-24560 [002] .... 42442.627617: smb3_enter:  cifs_revalidate_dentry_attr: xid=46
          fop777-24560 [003] .... 42442.628301: smb3_cmd_err:  sid=0x6173e4ce tid=0xa05150e6 cmd=5 mid=106 status=0xc0000034 rc=-2
          fop777-24560 [003] .... 42442.628319: smb3_open_err: xid=46 sid=0x6173e4ce tid=0xa05150e6 cr_opts=0x0 des_access=0x80 rc=-2
          fop777-24560 [003] .... 42442.628335: smb3_enter:  cifs_atomic_open: xid=47
          fop777-24560 [003] .... 42442.629587: smb3_cmd_done:  sid=0x6173e4ce tid=0xa05150e6 cmd=5 mid=107
          fop777-24560 [003] .... 42442.629592: smb3_open_done: xid=47 sid=0x6173e4ce tid=0xa05150e6 fid=0xb8a0984d cr_opts=0x40 des_access=0x40000080

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2pdu.c
fs/cifs/trace.h