]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add trace point for SMB2_set_eof
authorSteve French <stfrench@microsoft.com>
Thu, 16 Jun 2022 03:40:23 +0000 (22:40 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 16 Jun 2022 23:07:10 +0000 (18:07 -0500)
commit1319e15e5cde60b139f7efde0acfd756a452cfa5
tree7b6a7c54ee5461300c25c0f3a23393291c4e7ffa
parentb52d5a6d90c5addd271912240e89be49abd74565
smb3: add trace point for SMB2_set_eof

In order to debug problems with file size being reported incorrectly
temporarily (in this case xfstest generic/584 intermittent failure)
we need to add trace point for the non-compounded code path where
we set the file size (SMB2_set_eof).  The new trace point is:
   "smb3_set_eof"

Here is sample output from the tracepoint:

            TASK-PID     CPU#  |||||  TIMESTAMP  FUNCTION
              | |         |   |||||     |         |
          xfs_io-75403   [002] ..... 95219.189835: smb3_set_eof: xid=221 sid=0xeef1cbd2 tid=0x27079ee6 fid=0x52edb58c offset=0x100000
 aio-dio-append--75418   [010] ..... 95219.242402: smb3_set_eof: xid=226 sid=0xeef1cbd2 tid=0x27079ee6 fid=0xae89852d offset=0x0

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c
fs/cifs/trace.h