fusefs: add a dtrace probe that fires after mounting is complete

This probe is useful for showing the protocol options negotiated with a FUSE
server.

MFC after:	2 weeks
This commit is contained in:
Alan Somers 2020-03-30 14:03:35 +00:00
parent 89c7bb5613
commit 9338f18965
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359435

View file

@ -959,6 +959,8 @@ fuse_internal_vnode_disappear(struct vnode *vp)
/* fuse start/stop */
SDT_PROBE_DEFINE2(fusefs, , internal, init_done,
"struct fuse_data*", "struct fuse_init_out*");
int
fuse_internal_init_callback(struct fuse_ticket *tick, struct uio *uio)
{
@ -1043,6 +1045,7 @@ fuse_internal_init_callback(struct fuse_ticket *tick, struct uio *uio)
}
FUSE_LOCK();
data->dataflags |= FSESS_INITED;
SDT_PROBE2(fusefs, , internal, init_done, data, fiio);
wakeup(&data->ticketer);
FUSE_UNLOCK();