summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2006-04-04 20:17:35 +0000
committerpeter <peter@FreeBSD.org>2006-04-04 20:17:35 +0000
commitbfd11ed701136af472e0fdd5e1812fbcb048768d (patch)
tree1cacfe52fcde40068cdbccbde6fe7bc1f1186576 /sys/amd64
parentda02059e81ca00b10e3d82d1fd2a32434865b67c (diff)
downloadFreeBSD-src-bfd11ed701136af472e0fdd5e1812fbcb048768d.zip
FreeBSD-src-bfd11ed701136af472e0fdd5e1812fbcb048768d.tar.gz
Convert pv_entry_frees and pv_entry_allocs stats counters from int to long,
they wrap way too quickly.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 009898a..c5e27e9 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1474,13 +1474,14 @@ SYSCTL_INT(_vm_pmap, OID_AUTO, pc_chunk_frees, CTLFLAG_RD, &pc_chunk_frees, 0,
SYSCTL_INT(_vm_pmap, OID_AUTO, pc_chunk_tryfail, CTLFLAG_RD, &pc_chunk_tryfail, 0,
"Number of times tried to get a chunk page but failed.");
-static int pv_entry_frees, pv_entry_allocs, pv_entry_spare;
+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_INT(_vm_pmap, OID_AUTO, pv_entry_frees, CTLFLAG_RD, &pv_entry_frees, 0,
+SYSCTL_LONG(_vm_pmap, OID_AUTO, pv_entry_frees, CTLFLAG_RD, &pv_entry_frees, 0,
"Current number of pv entry frees");
-SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_allocs, CTLFLAG_RD, &pv_entry_allocs, 0,
+SYSCTL_LONG(_vm_pmap, OID_AUTO, pv_entry_allocs, CTLFLAG_RD, &pv_entry_allocs, 0,
"Current number of pv entry allocs");
SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_spare, CTLFLAG_RD, &pv_entry_spare, 0,
"Current number of spare pv entries");
OpenPOWER on IntegriCloud