cifs: Add tracing for the cifs_tcon struct refcounting
authorDavid Howells <dhowells@redhat.com>
Thu, 4 Apr 2024 12:51:36 +0000 (13:51 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 19 Apr 2024 21:02:09 +0000 (16:02 -0500)
commitafc23febd51c7e24361e3a9c09f3e892eb0a41ea
tree9859f9daaf1dcd518c60df378ec8c09b32f209eb
parentdad80c6bff770d25f67ec25fe011730e4a463008
cifs: Add tracing for the cifs_tcon struct refcounting

Add tracing for the refcounting/lifecycle of the cifs_tcon struct, marking
different events with different labels and giving each tcon its own debug
ID so that the tracelines corresponding to individual tcons can be
distinguished.  This can be enabled with:

echo 1 >/sys/kernel/debug/tracing/events/cifs/smb3_tcon_ref/enable

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c
fs/smb/client/cifsglob.h
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/fscache.c
fs/smb/client/misc.c
fs/smb/client/smb2misc.c
fs/smb/client/smb2ops.c
fs/smb/client/smb2pdu.c
fs/smb/client/smb2transport.c
fs/smb/client/trace.h