smb3: add dynamic trace points for tree disconnect
authorSteve French <stfrench@microsoft.com>
Wed, 21 Sep 2022 19:05:53 +0000 (14:05 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 5 Oct 2022 06:31:18 +0000 (01:31 -0500)
commit68e14569d7e5a1798fcbfd945022a4de86f944a0
treeadc934002500308dc31fed251615fc35f4fb2265
parent0350d7a39c7f8175fca001b6d6a39481da5ef22c
smb3: add dynamic trace points for tree disconnect

Needed this for debugging a failing xfstest.
Also change camel case for "treeName" to "tree_name" in tcon struct.

Example trace output (from "trace-cmd record -e smb3_tdis*"):
          umount-9718    [006] .....  5909.780244: smb3_tdis_enter: xid=206 sid=0xcf38894e tid=0x3d0b8cf8 path=\\localhost\test
          umount-9718    [007] .....  5909.780878: smb3_tdis_done: xid=206 sid=0xcf38894e tid=0x3d0b8cf8

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
15 files changed:
fs/cifs/cached_dir.c
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.h
fs/cifs/cifs_swn.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/dfs_cache.c
fs/cifs/dir.c
fs/cifs/fscache.c
fs/cifs/inode.c
fs/cifs/misc.c
fs/cifs/smb2inode.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/trace.h