summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-08-21 06:27:28 +0000
committeralc <alc@FreeBSD.org>2006-08-21 06:27:28 +0000
commitfe4d04c55514c2e5b23cea509301acfe28819b7c (patch)
treee6ee6518387bbef3e797b3186cf12c25148a9680
parenta5e7380f7b7aa4ec5542efcc5a285b41085c1977 (diff)
downloadFreeBSD-src-fe4d04c55514c2e5b23cea509301acfe28819b7c.zip
FreeBSD-src-fe4d04c55514c2e5b23cea509301acfe28819b7c.tar.gz
Add _vm_stats and _vm_stats_misc to the sysctl declarations in sysctl.h and
eliminate their declarations from various source files.
-rw-r--r--sys/sys/sysctl.h2
-rw-r--r--sys/vm/vm_object.c1
-rw-r--r--sys/vm/vm_pageq.c1
-rw-r--r--sys/vm/vm_zeroidle.c2
4 files changed, 2 insertions, 4 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index da17fdd..f544d7d 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -616,6 +616,8 @@ SYSCTL_DECL(_kern);
SYSCTL_DECL(_kern_ipc);
SYSCTL_DECL(_sysctl);
SYSCTL_DECL(_vm);
+SYSCTL_DECL(_vm_stats);
+SYSCTL_DECL(_vm_stats_misc);
SYSCTL_DECL(_vfs);
SYSCTL_DECL(_net);
SYSCTL_DECL(_debug);
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index cef7b6a..b0d219f 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -144,7 +144,6 @@ struct mtx vm_object_list_mtx; /* lock for object list and count */
struct vm_object kernel_object_store;
struct vm_object kmem_object_store;
-SYSCTL_DECL(_vm_stats);
SYSCTL_NODE(_vm_stats, OID_AUTO, object, CTLFLAG_RD, 0, "VM object stats");
static long object_collapses;
diff --git a/sys/vm/vm_pageq.c b/sys/vm/vm_pageq.c
index 2fd7060..69e9bc4 100644
--- a/sys/vm/vm_pageq.c
+++ b/sys/vm/vm_pageq.c
@@ -59,7 +59,6 @@ struct pq_coloring page_queue_coloring;
static int pq_cachesize = 0; /* size of the cache in KB */
static int pq_cachenways = 0; /* associativity of the cache */
-SYSCTL_DECL(_vm_stats);
SYSCTL_NODE(_vm_stats, OID_AUTO, pagequeue, CTLFLAG_RW, 0, "VM meter stats");
SYSCTL_INT(_vm_stats_pagequeue, OID_AUTO, page_colors, CTLFLAG_RD,
&(PQ_NUMCOLORS), 0, "Number of colors in the page queue");
diff --git a/sys/vm/vm_zeroidle.c b/sys/vm/vm_zeroidle.c
index 4f48ccc..5479430 100644
--- a/sys/vm/vm_zeroidle.c
+++ b/sys/vm/vm_zeroidle.c
@@ -52,8 +52,6 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
#include <vm/vm_page.h>
-SYSCTL_DECL(_vm_stats_misc);
-
static int cnt_prezero;
SYSCTL_INT(_vm_stats_misc, OID_AUTO, cnt_prezero, CTLFLAG_RD,
&cnt_prezero, 0, "");
OpenPOWER on IntegriCloud