From f82e92e52bce9da6f699e691d20554ef9448aebd Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 13 May 2019 15:39:19 +0000 Subject: [PATCH] fusefs: enhance an SDT probe added in r346998 Sponsored by: The FreeBSD Foundation --- sys/fs/fuse/fuse_node.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/fs/fuse/fuse_node.c b/sys/fs/fuse/fuse_node.c index 5ec813b1e5a8..96d60dda0fd7 100644 --- a/sys/fs/fuse/fuse_node.c +++ b/sys/fs/fuse/fuse_node.c @@ -212,7 +212,8 @@ fuse_vnode_hash(uint64_t id) return (fnv_32_buf(&id, sizeof(id), FNV1_32_INIT)); } -SDT_PROBE_DEFINE2(fusefs, , node, stale_vnode, "struct vnode*", "enum vtype"); +SDT_PROBE_DEFINE3(fusefs, , node, stale_vnode, "struct vnode*", "enum vtype", + "uint64_t"); static int fuse_vnode_alloc(struct mount *mp, struct thread *td, @@ -241,7 +242,8 @@ fuse_vnode_alloc(struct mount *mp, * between FUSE_LOOKUP and another client's * FUSE_UNLINK/FUSE_CREATE */ - SDT_PROBE2(fusefs, , node, stale_vnode, *vpp, vtyp); + SDT_PROBE3(fusefs, , node, stale_vnode, *vpp, vtyp, + nodeid); fuse_internal_vnode_disappear(*vpp); lockmgr((*vpp)->v_vnlock, LK_RELEASE, NULL); *vpp = NULL;