]> git.baikalelectronics.ru Git - kernel.git/commit
9p fid refcount: add a 9p_fid_ref tracepoint
authorDominique Martinet <asmadeus@codewreck.org>
Sun, 12 Jun 2022 23:32:06 +0000 (08:32 +0900)
committerDominique Martinet <dominique.martinet@atmark-techno.com>
Sat, 2 Jul 2022 09:52:21 +0000 (18:52 +0900)
commite09b6f2351a477dd9191a764ee232bb4e6664ad7
treea88cd5244bb6b8221928a2781e25fa7cd59ec2bb
parenta08457b0540b6abef86ce25d94abf1898f0015cb
9p fid refcount: add a 9p_fid_ref tracepoint

This adds a tracepoint event for 9p fid lifecycle tracing: when a fid
is created, its reference count increased/decreased, and freed.
The new 9p_fid_ref tracepoint should help anyone wishing to debug any
fid problem such as missing clunk (destroy) or use-after-free.

Link: https://lkml.kernel.org/r/20220612085330.1451496-6-asmadeus@codewreck.org
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
include/net/9p/client.h
include/trace/events/9p.h
net/9p/client.c