]> git.infradead.org Git - users/hch/misc.git/commit
smb3: add four dynamic tracepoints for copy_file_range and reflink
authorSteve French <stfrench@microsoft.com>
Wed, 24 Jul 2024 16:57:18 +0000 (11:57 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 26 Jul 2024 17:34:41 +0000 (12:34 -0500)
commit6629f87b97e0740431b7b29b8dfdfa9d842c4bc5
tree1cf262af97bc75e5a9e48a049d7e5b7d57def3f5
parent5779d398dbcd74c30a641c209946b8498e668a53
smb3: add four dynamic tracepoints for copy_file_range and reflink

Add more dynamic tracepoints to help debug copy_file_range (copychunk)
and clone_range ("duplicate extents").  These are tracepoints for
entering the function and completing without error. For example:

  "trace-cmd record -e smb3_copychunk_enter -e smb3_copychunk_done"

or

  "trace-cmd record -e smb3_clone_enter -e smb3_clone_done"

Here is sample output:

       TASK-PID     CPU#  |||||  TIMESTAMP  FUNCTION
         | |         |   |||||     |         |
       cp-5964    [005] .....  2176.168977: smb3_clone_enter:
         xid=17 sid=0xeb275be4 tid=0x7ffa7cdb source fid=0x1ed02e15
         source offset=0x0 target fid=0x1ed02e15 target offset=0x0
         len=0xa0000
       cp-5964    [005] .....  2176.170668: smb3_clone_done:
         xid=17 sid=0xeb275be4 tid=0x7ffa7cdb source fid=0x1ed02e15
         source offset=0x0 target fid=0x1ed02e15 target offset=0x0
         len=0xa0000

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c
fs/smb/client/trace.h