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 UVMHIST_LOG and a new KASSERT



details:   https://anonhg.NetBSD.org/src/rev/bfe43c843f23
branches:  trunk
changeset: 974754:bfe43c843f23
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Aug 10 05:40:21 2020 +0000

description:
More UVMHIST_LOG and a new KASSERT

diffstat:

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

diffs (48 lines):

diff -r 882a7328e7bd -r bfe43c843f23 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Mon Aug 10 05:38:43 2020 +0000
+++ b/sys/arch/arm/arm32/pmap.c Mon Aug 10 05:40:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.418 2020/08/10 05:38:43 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.419 2020/08/10 05:40:21 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -192,7 +192,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.418 2020/08/10 05:38:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.419 2020/08/10 05:40:21 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -4840,6 +4840,8 @@
        }
 
        pmap_release_pmap_lock(pm);
+
+       UVMHIST_LOG(pmaphist, " <-- done", 0, 0, 0, 0);
 }
 
 #ifdef ARM_MMU_EXTENDED
@@ -5175,6 +5177,11 @@
 pmap_remove_all(pmap_t pm)
 {
 
+       UVMHIST_FUNC(__func__);
+       UVMHIST_CALLARGS(pmaphist, "(pm=%#jx)", (uintptr_t)pmap, 0, 0, 0);
+
+       KASSERT(pm != pmap_kernel());
+
        /*
         * The vmspace described by this pmap is about to be torn down.
         * Until pmap_update() is called, UVM will only make calls
@@ -5199,6 +5206,8 @@
        pmap_tlb_asid_release_all(pm);
 #endif
        pm->pm_remove_all = true;
+
+       UVMHIST_LOG(pmaphist, " <-- done", 0, 0, 0, 0);
        return false;
 }
 



Home | Main Index | Thread Index | Old Index