diff options
author | Peter Wemm <peter@FreeBSD.org> | 2006-04-26 21:34:07 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2006-04-26 21:34:07 +0000 |
commit | 0be8b8cee83cf82c910e548b5710991a624d5ef5 (patch) | |
tree | 207d6b604a506c71aa4759f9620ca6587543c274 /sys/amd64 | |
parent | 24f9da031c541c4c9d5750a976fd3792cdcb671b (diff) | |
download | src-0be8b8cee83cf82c910e548b5710991a624d5ef5.tar.gz src-0be8b8cee83cf82c910e548b5710991a624d5ef5.zip |
Move vm.pmap.pv_entry_count out from the PV_STATS ifdefs. It is always
available and is a real counter, not a statistic.
Notes
Notes:
svn path=/head/; revision=158059
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 91292e46710f..5a923b2aea4d 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, |