summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2006-04-26 21:34:07 +0000
committerpeter <peter@FreeBSD.org>2006-04-26 21:34:07 +0000
commitb9ca1b31c7fe6ffa90d3b8a68f8ab7b77331ee52 (patch)
tree207d6b604a506c71aa4759f9620ca6587543c274 /sys/amd64
parent8bb42a6fac7a80eee9c47ddaf0f02c4f0834418b (diff)
downloadFreeBSD-src-b9ca1b31c7fe6ffa90d3b8a68f8ab7b77331ee52.zip
FreeBSD-src-b9ca1b31c7fe6ffa90d3b8a68f8ab7b77331ee52.tar.gz
Move vm.pmap.pv_entry_count out from the PV_STATS ifdefs. It is always
available and is a real counter, not a statistic.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 91292e4..5a923b2 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1449,6 +1449,9 @@ pv_to_chunk(pv_entry_t pv)
static uint64_t pc_freemask[3] = { PC_FREE0, PC_FREE1, PC_FREE2 };
+SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_count, CTLFLAG_RD, &pv_entry_count, 0,
+ "Current number of pv entries");
+
#ifdef PV_STATS
static int pc_chunk_count, pc_chunk_allocs, pc_chunk_frees, pc_chunk_tryfail;
@@ -1464,8 +1467,6 @@ SYSCTL_INT(_vm_pmap, OID_AUTO, pc_chunk_tryfail, CTLFLAG_RD, &pc_chunk_tryfail,
static long pv_entry_frees, pv_entry_allocs;
static int pv_entry_spare;
-SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_count, CTLFLAG_RD, &pv_entry_count, 0,
- "Current number of pv entries");
SYSCTL_LONG(_vm_pmap, OID_AUTO, pv_entry_frees, CTLFLAG_RD, &pv_entry_frees, 0,
"Current number of pv entry frees");
SYSCTL_LONG(_vm_pmap, OID_AUTO, pv_entry_allocs, CTLFLAG_RD, &pv_entry_allocs, 0,
OpenPOWER on IntegriCloud