diff options
| author | Alan Cox <alc@FreeBSD.org> | 2006-07-22 22:31:57 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2006-07-22 22:31:57 +0000 |
| commit | 604c2bbc34ecab3af2cdf74a7caa5fc821fa8ad1 (patch) | |
| tree | 3aab5d4fe95442a8946027a422497d9fc3041407 | |
| parent | f3f49bbbe8679d9bf037ec038e54512d7fbc6a8b (diff) | |
Notes
| -rw-r--r-- | sys/vm/vm_object.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 5572f2d8e1bd..4f6696e67e5a 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 |
