Author: mjg
Date: Sat Oct 17 00:27:26 2020
New Revision: 366776
URL: https://svnweb.freebsd.org/changeset/base/366776

Log:
  cache: add a probe reporting addition of duplicate entries

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c   Sat Oct 17 00:10:13 2020        (r366775)
+++ head/sys/kern/vfs_cache.c   Sat Oct 17 00:27:26 2020        (r366776)
@@ -82,6 +82,8 @@ __FBSDID("$FreeBSD$");
 SDT_PROVIDER_DECLARE(vfs);
 SDT_PROBE_DEFINE3(vfs, namecache, enter, done, "struct vnode *", "char *",
     "struct vnode *");
+SDT_PROBE_DEFINE3(vfs, namecache, enter, duplicate, "struct vnode *", "char *",
+    "struct vnode *");
 SDT_PROBE_DEFINE2(vfs, namecache, enter_negative, done, "struct vnode *",
     "char *");
 SDT_PROBE_DEFINE2(vfs, namecache, fullpath_smr, hit, "struct vnode *",
@@ -2001,6 +2003,8 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, 
                                }
                        }
 #endif
+                       SDT_PROBE3(vfs, namecache, enter, duplicate, dvp, 
ncp->nc_name,
+                           vp);
                        goto out_unlock_free;
                }
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to