summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-01-20 21:47:47 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-01-20 21:47:47 +0000
commitc63ab1272fa97fad6c014ffa5e970f210e0cd16a (patch)
treee21330f200bc82877f050aca2c73b4363935c99e /sys
parentd3011c65b9af92f4531c6fc167fae72ce879933f (diff)
put some more stuff behind #ifdef KMEMSTATS
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_malloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index ce8f043dcf3..d72f79fdc27 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.10 1999/01/11 05:12:23 millert Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.11 1999/01/20 21:47:46 art Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -47,10 +47,14 @@
#include <vm/vm_kern.h>
struct kmembuckets bucket[MINBUCKET + 16];
+#ifdef KMEMSTATS
struct kmemstats kmemstats[M_LAST];
+#endif
struct kmemusage *kmemusage;
char *kmembase, *kmemlimit;
+#if defined(KMEMSTATS) || defined(DIAGNOSTIC)
char *memname[] = INITKMEMNAMES;
+#endif
#ifdef DIAGNOSTIC
/*