summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_zone.h
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-08-07 03:52:55 +0000
committerdyson <dyson@FreeBSD.org>1997-08-07 03:52:55 +0000
commit85f902e519afa7dd7e3c1b375e69d01c672307e4 (patch)
treee30bb51cc6fc98040663ab1c90dcb73dc78bc90a /sys/vm/vm_zone.h
parentf4c7456c09a561d31c5a32bd092bee2674b6f69c (diff)
downloadFreeBSD-src-85f902e519afa7dd7e3c1b375e69d01c672307e4.zip
FreeBSD-src-85f902e519afa7dd7e3c1b375e69d01c672307e4.tar.gz
More vm_zone cleanup. The sysctl now accounts for items better, and
counts the number of allocations.
Diffstat (limited to 'sys/vm/vm_zone.h')
-rw-r--r--sys/vm/vm_zone.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_zone.h b/sys/vm/vm_zone.h
index 39abfa1..05aab2d 100644
--- a/sys/vm/vm_zone.h
+++ b/sys/vm/vm_zone.h
@@ -19,7 +19,7 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: vm_zone.h,v 1.2 1997/08/05 22:24:31 dyson Exp $
+ * $Id: vm_zone.h,v 1.3 1997/08/06 04:58:05 dyson Exp $
*/
#if !defined(_SYS_ZONE_H)
@@ -38,6 +38,7 @@ typedef struct vm_zone {
void *zitems; /* linked list of items */
int zfreecnt; /* free entries */
int zfreemin; /* minimum number of free entries */
+ int znalloc; /* number of allocations */
vm_offset_t zkva; /* Base kva of zone */
int zpagecount; /* Total # of allocated pages */
int zpagemax; /* Max address space */
@@ -81,6 +82,7 @@ _zalloc(vm_zone_t z) {
item = z->zitems;
z->zitems = *(void **) item;
z->zfreecnt--;
+ z->znalloc++;
return item;
}
OpenPOWER on IntegriCloud