smb3: add dynamic trace point for ioctls
authorSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2024 07:03:59 +0000 (01:03 -0600)
committerSteve French <stfrench@microsoft.com>
Mon, 11 Mar 2024 00:36:18 +0000 (19:36 -0500)
commit073dd87c8e1ee55ca163956f0c71249dc28aac51
tree28e180b007f1a8b604b94088369c1174c938a95d
parentf3dc1bdb6b0b0693562c7c54a6c28bafa608ba3c
smb3: add dynamic trace point for ioctls

It can be helpful in debugging to know which ioctls are called to better
correlate them with smb3 fsctls (and opens).  Add a dynamic trace point
to trace ioctls into cifs.ko

Here is sample output:

            TASK-PID     CPU#  |||||  TIMESTAMP  FUNCTION
               | |         |   |||||     |         |
 new-inotify-ioc-90418   [001] ..... 142157.397024: smb3_ioctl: xid=18 fid=0x0 ioctl cmd=0xc009cf0b
 new-inotify-ioc-90457   [007] ..... 142217.943569: smb3_ioctl: xid=22 fid=0x389bf5b6 ioctl cmd=0xc009cf0b

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/ioctl.c
fs/smb/client/trace.h