Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern vfs(9): Move SDT_PROVIDER_DEFINE(vfs) from vfs_cach...



details:   https://anonhg.NetBSD.org/src/rev/42f4820fbbec
branches:  trunk
changeset: 374513:42f4820fbbec
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 29 10:07:22 2023 +0000

description:
vfs(9): Move SDT_PROVIDER_DEFINE(vfs) from vfs_cache.c to vfs_init.c.

Not a namecache-specific thing.

diffstat:

 sys/kern/vfs_cache.c |  6 ++----
 sys/kern/vfs_init.c  |  8 ++++++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (69 lines):

diff -r 175479f0d4cc -r 42f4820fbbec sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Sat Apr 29 10:07:13 2023 +0000
+++ b/sys/kern/vfs_cache.c      Sat Apr 29 10:07:22 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_cache.c,v 1.153 2023/04/09 09:18:09 riastradh Exp $        */
+/*     $NetBSD: vfs_cache.c,v 1.154 2023/04/29 10:07:22 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -172,7 +172,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.153 2023/04/09 09:18:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.154 2023/04/29 10:07:22 riastradh Exp $");
 
 #define __NAMECACHE_PRIVATE
 #ifdef _KERNEL_OPT
@@ -292,8 +292,6 @@ static const rb_tree_ops_t cache_rbtree_
 /*
  * dtrace probes.
  */
-SDT_PROVIDER_DEFINE(vfs);
-
 SDT_PROBE_DEFINE1(vfs, namecache, invalidate, done, "struct vnode *");
 SDT_PROBE_DEFINE1(vfs, namecache, purge, parents, "struct vnode *");
 SDT_PROBE_DEFINE1(vfs, namecache, purge, children, "struct vnode *");
diff -r 175479f0d4cc -r 42f4820fbbec sys/kern/vfs_init.c
--- a/sys/kern/vfs_init.c       Sat Apr 29 10:07:13 2023 +0000
+++ b/sys/kern/vfs_init.c       Sat Apr 29 10:07:22 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_init.c,v 1.60 2023/04/29 10:07:13 riastradh Exp $  */
+/*     $NetBSD: vfs_init.c,v 1.61 2023/04/29 10:07:22 riastradh Exp $  */
 
 /*-
  * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v 1.60 2023/04/29 10:07:13 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v 1.61 2023/04/29 10:07:22 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -80,12 +80,14 @@
 #include <sys/module.h>
 #include <sys/mount.h>
 #include <sys/namei.h>
+#include <sys/sdt.h>
 #include <sys/stat.h>
 #include <sys/sysctl.h>
 #include <sys/systm.h>
 #include <sys/time.h>
 #include <sys/ucred.h>
 #include <sys/vnode.h>
+#include <sys/vnode_impl.h>
 
 #include <miscfs/deadfs/deadfs.h>
 #include <miscfs/fifofs/fifo.h>
@@ -100,6 +102,8 @@
 #define DODEBUG(A)
 #endif
 
+SDT_PROVIDER_DEFINE(vfs);
+
 pool_cache_t pnbuf_cache;
 
 /*



Home | Main Index | Thread Index | Old Index