Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern allow kmem_guard_depth to be set in the config file.
details: https://anonhg.NetBSD.org/src/rev/31f312ce111a
branches: trunk
changeset: 778772:31f312ce111a
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Apr 13 06:27:02 2012 +0000
description:
allow kmem_guard_depth to be set in the config file.
diffstat:
sys/kern/subr_kmem.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r af816bb30da8 -r 31f312ce111a sys/kern/subr_kmem.c
--- a/sys/kern/subr_kmem.c Fri Apr 13 06:26:04 2012 +0000
+++ b/sys/kern/subr_kmem.c Fri Apr 13 06:27:02 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_kmem.c,v 1.43 2012/04/01 17:02:46 para Exp $ */
+/* $NetBSD: subr_kmem.c,v 1.44 2012/04/13 06:27:02 mrg Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.43 2012/04/01 17:02:46 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.44 2012/04/13 06:27:02 mrg Exp $");
#include <sys/param.h>
#include <sys/callback.h>
@@ -122,7 +122,10 @@
static size_t kmem_cache_maxidx __read_mostly;
#if defined(DEBUG)
-int kmem_guard_depth = 0;
+#ifndef KMEM_GUARD_DEPTH
+#define KMEM_GUARD_DEPTH 0
+#endif
+int kmem_guard_depth = KMEM_GUARD_DEPTH;
size_t kmem_guard_size;
static struct uvm_kmguard kmem_guard;
static void *kmem_freecheck;
Home |
Main Index |
Thread Index |
Old Index