Source-Changes-HG archive

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

[src/trunk]: src/sys/sys sys/vnode_impl.h: Declare vfs sdt provider.



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

description:
sys/vnode_impl.h: Declare vfs sdt provider.

This way it can be used by more than just vfs_cache.c.

diffstat:

 sys/sys/vnode_impl.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 985d6d42dd56 -r f90f557d8831 sys/sys/vnode_impl.h
--- a/sys/sys/vnode_impl.h      Sat Apr 29 10:06:33 2023 +0000
+++ b/sys/sys/vnode_impl.h      Sat Apr 29 10:07:05 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode_impl.h,v 1.25 2023/04/29 06:28:12 riastradh Exp $        */
+/*     $NetBSD: vnode_impl.h,v 1.26 2023/04/29 10:07:05 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2016, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,6 +30,7 @@
 #define        _SYS_VNODE_IMPL_H_
 #if defined(_KERNEL) || defined(_KMEMUSER)
 
+#include <sys/sdt.h>
 #include <sys/vnode.h>
 
 struct namecache;
@@ -155,5 +156,7 @@ int vcache_vget(vnode_t *);
 int    vcache_tryvget(vnode_t *);
 int    vfs_drainvnodes(void);
 
+SDT_PROVIDER_DECLARE(vfs);
+
 #endif /* defined(_KERNEL) || defined(_KMEMUSER) */
 #endif /* !_SYS_VNODE_IMPL_H_ */



Home | Main Index | Thread Index | Old Index