diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-11-20 00:41:11 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-11-20 00:41:11 +0000 |
commit | 7302881265de22775204f29a13a6531245b7139a (patch) | |
tree | 57b36877e3cfdf7977226432b226e3a44fa8274f /sys | |
parent | 4a8be80602526068ed41af6b0541c849a044cfaa (diff) | |
download | FreeBSD-src-7302881265de22775204f29a13a6531245b7139a.zip FreeBSD-src-7302881265de22775204f29a13a6531245b7139a.tar.gz |
o Export nchstats ("VFS cache effectiveness statistics") using
SYSCTL_OPAQUE. This removes a reason that systat requires
setgid kmem. More to come.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 976f85e..114426e 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -123,6 +123,10 @@ static u_long numposhits; STATNODE(CTLFLAG_RD, numposhits, &numposhits); static u_long numnegzaps; STATNODE(CTLFLAG_RD, numnegzaps, &numnegzaps); static u_long numneghits; STATNODE(CTLFLAG_RD, numneghits, &numneghits); +SYSCTL_OPAQUE(_vfs_cache, OID_AUTO, nchstats, CTLFLAG_RD, &nchstats, + sizeof(nchstats), "LU", "VFS cache effectiveness statistics"); + + static void cache_zap __P((struct namecache *ncp)); |