summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-07-22 22:31:57 +0000
committeralc <alc@FreeBSD.org>2006-07-22 22:31:57 +0000
commit89dea53ec2f72a62ad4c75f280c5645bac5434f8 (patch)
tree3aab5d4fe95442a8946027a422497d9fc3041407 /sys/vm
parent5d4d7953f046d4fc408ad751e18b3d9929e1f18b (diff)
downloadFreeBSD-src-89dea53ec2f72a62ad4c75f280c5645bac5434f8.zip
FreeBSD-src-89dea53ec2f72a62ad4c75f280c5645bac5434f8.tar.gz
Export the number of object bypasses and collapses through sysctl.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_object.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 5572f2d..4f6696e 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -144,8 +144,16 @@ 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;
+SYSCTL_LONG(_vm_stats_object, OID_AUTO, collapses, CTLFLAG_RD,
+ &object_collapses, 0, "VM object collapses");
+
static long object_bypasses;
+SYSCTL_LONG(_vm_stats_object, OID_AUTO, bypasses, CTLFLAG_RD,
+ &object_bypasses, 0, "VM object bypasses");
/*
* next_index determines the page color that is assigned to the next
OpenPOWER on IntegriCloud