Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 more debug



details:   https://anonhg.NetBSD.org/src/rev/044dc45e7124
branches:  trunk
changeset: 346711:044dc45e7124
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jul 29 15:38:05 2016 +0000

description:
more debug

diffstat:

 sys/arch/arm/arm32/pmap.c |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (63 lines):

diff -r a8323c0d4f5c -r 044dc45e7124 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Fri Jul 29 10:09:38 2016 +0000
+++ b/sys/arch/arm/arm32/pmap.c Fri Jul 29 15:38:05 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.336 2016/07/29 09:47:09 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.337 2016/07/29 15:38:05 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
 
 #include <arm/locore.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.336 2016/07/29 09:47:09 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.337 2016/07/29 15:38:05 skrll Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -5000,6 +5000,11 @@
 pmap_update(pmap_t pm)
 {
 
+       UVMHIST_FUNC(__func__); UVMHIST_CALLED(maphist);
+
+       UVMHIST_LOG(maphist, "pm=%#x remove_all %d", pm, pm->pm_remove_all, 0,
+           0);
+
        if (pm->pm_remove_all) {
 #ifdef ARM_MMU_EXTENDED
                KASSERT(pm != pmap_kernel());
@@ -5090,6 +5095,7 @@
         * make sure TLB/cache operations have completed.
         */
        cpu_cpwait();
+       UVMHIST_LOG(maphist, "  <-- done", 0, 0, 0, 0);
 }
 
 void
@@ -5115,11 +5121,16 @@
 void
 pmap_destroy(pmap_t pm)
 {
+       UVMHIST_FUNC(__func__); UVMHIST_CALLED(maphist);
+
        u_int count;
 
        if (pm == NULL)
                return;
 
+       UVMHIST_LOG(maphist, "pm=%#x remove_all %d", pm, pm->pm_remove_all, 0,
+           0);
+
        if (pm->pm_remove_all) {
 #ifdef ARM_MMU_EXTENDED
                pmap_tlb_asid_release_all(pm);
@@ -5176,6 +5187,7 @@
        uvm_obj_destroy(&pm->pm_obj, false);
        mutex_destroy(&pm->pm_obj_lock);
        pool_cache_put(&pmap_cache, pm);
+       UVMHIST_LOG(maphist, "  <-- done", 0, 0, 0, 0);
 }
 
 



Home | Main Index | Thread Index | Old Index