• Steve French's avatar
    smb3: add tracepoints for query dir · adb3b4e9
    Steve French authored
    Adds two tracepoints - one for query_dir done (no err) and one for query_dir_err
    
    Sanple output:
    
    To start the trace in one window:
           trace-cmd record -e smb3_query_dir*
    
    Then in another window after doing an
           ls /mnt
    
    View the trace output by:
    
            trace-cmd show
    
    Sample output:
    
               TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
                  | |       |   ||||       |         |
                 ls-24869 [007] .... 90695.452009: smb3_query_dir_done: xid=7 sid=0x5027d24d tid=0xb95cf25a fid=0xc41a8c3e offset=0x0 len=0x16
                 ls-24869 [000] .... 90695.452764: smb3_query_dir_done: xid=8 sid=0x5027d24d tid=0xb95cf25a fid=0xc41a8c3e offset=0x0 len=0x0
                 ls-24874 [003] .... 90701.506342: smb3_query_dir_done: xid=11 sid=0x5027d24d tid=0xb95cf25a fid=0x33ad3601 offset=0x0 len=0x8
                 ls-24874 [003] .... 90701.506917: smb3_query_dir_done: xid=12 sid=0x5027d24d tid=0xb95cf25a fid=0x33ad3601 offset=0x0 len=0x0
    Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
    Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    adb3b4e9
trace.h 15.7 KB