• Steve French's avatar
    smb3: add tracepoints for smb2/smb3 open · 28d59363
    Steve French authored
    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: default avatarSteve French <smfrench@gmail.com>
    28d59363
trace.h 10.6 KB