Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Define UVMDEBUG for expensive debugging operations. ...



details:   https://anonhg.NetBSD.org/src/rev/018377987173
branches:  trunk
changeset: 803409:018377987173
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 26 01:42:07 2014 +0000

description:
Define UVMDEBUG for expensive debugging operations. Idea from chuq.

diffstat:

 sys/uvm/uvm_map.c    |  8 ++++----
 sys/uvm/uvm_pglist.c |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r e175a405bf0a -r 018377987173 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sat Oct 25 22:00:19 2014 +0000
+++ b/sys/uvm/uvm_map.c Sun Oct 26 01:42:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.330 2014/07/18 12:36:57 christos Exp $   */
+/*     $NetBSD: uvm_map.c,v 1.331 2014/10/26 01:42:07 christos Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.330 2014/07/18 12:36:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.331 2014/10/26 01:42:07 christos Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -2238,7 +2238,7 @@
                        uvm_map_unlock_entry(entry);
                }
 
-#if defined(DEBUG)
+#if defined(UVMDEBUG)
                /*
                 * check if there's remaining mapping,
                 * which is a bug in caller.
@@ -2257,7 +2257,7 @@
                        uvm_km_check_empty(map, entry->start,
                            entry->end);
                }
-#endif /* defined(DEBUG) */
+#endif /* defined(UVMDEBUG) */
 
                /*
                 * remove entry from map and put it on our list of entries
diff -r e175a405bf0a -r 018377987173 sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c      Sat Oct 25 22:00:19 2014 +0000
+++ b/sys/uvm/uvm_pglist.c      Sun Oct 26 01:42:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pglist.c,v 1.66 2014/09/05 05:36:21 matt Exp $     */
+/*     $NetBSD: uvm_pglist.c,v 1.67 2014/10/26 01:42:07 christos Exp $ */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.66 2014/09/05 05:36:21 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.67 2014/10/26 01:42:07 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -90,7 +90,7 @@
        free_list = uvm_page_lookup_freelist(pg);
        color = VM_PGCOLOR_BUCKET(pg);
        pgflidx = (pg->flags & PG_ZERO) ? PGFL_ZEROS : PGFL_UNKNOWN;
-#ifdef NOT_DEBUG
+#ifdef UVMDEBUG
        struct vm_page *tp;
        LIST_FOREACH(tp,
            &uvm.page_free[free_list].pgfl_buckets[color].pgfl_queues[pgflidx],



Home | Main Index | Thread Index | Old Index