Module Name:    src
Committed By:   riastradh
Date:           Sat Apr 29 10:07:22 UTC 2023

Modified Files:
        src/sys/kern: vfs_cache.c vfs_init.c

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

Not a namecache-specific thing.


To generate a diff of this commit:
cvs rdiff -u -r1.153 -r1.154 src/sys/kern/vfs_cache.c
cvs rdiff -u -r1.60 -r1.61 src/sys/kern/vfs_init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_cache.c
diff -u src/sys/kern/vfs_cache.c:1.153 src/sys/kern/vfs_cache.c:1.154
--- src/sys/kern/vfs_cache.c:1.153	Sun Apr  9 09:18:09 2023
+++ src/sys/kern/vfs_cache.c	Sat Apr 29 10:07:22 2023
@@ -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 *");

Index: src/sys/kern/vfs_init.c
diff -u src/sys/kern/vfs_init.c:1.60 src/sys/kern/vfs_init.c:1.61
--- src/sys/kern/vfs_init.c:1.60	Sat Apr 29 10:07:13 2023
+++ src/sys/kern/vfs_init.c	Sat Apr 29 10:07:22 2023
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v
 #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 @@ __KERNEL_RCSID(0, "$NetBSD: vfs_init.c,v
 #define DODEBUG(A)
 #endif
 
+SDT_PROVIDER_DEFINE(vfs);
+
 pool_cache_t pnbuf_cache;
 
 /*

Reply via email to