Module Name: src
Committed By: skrll
Date: Mon Aug 10 05:40:21 UTC 2020
Modified Files:
src/sys/arch/arm/arm32: pmap.c
Log Message:
More UVMHIST_LOG and a new KASSERT
To generate a diff of this commit:
cvs rdiff -u -r1.418 -r1.419 src/sys/arch/arm/arm32/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/arm32/pmap.c
diff -u src/sys/arch/arm/arm32/pmap.c:1.418 src/sys/arch/arm/arm32/pmap.c:1.419
--- src/sys/arch/arm/arm32/pmap.c:1.418 Mon Aug 10 05:38:43 2020
+++ src/sys/arch/arm/arm32/pmap.c Mon Aug 10 05:40:21 2020
@@ -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_unwire(pmap_t pm, vaddr_t va)
}
pmap_release_pmap_lock(pm);
+
+ UVMHIST_LOG(pmaphist, " <-- done", 0, 0, 0, 0);
}
#ifdef ARM_MMU_EXTENDED
@@ -5175,6 +5177,11 @@ bool
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_remove_all(pmap_t pm)
pmap_tlb_asid_release_all(pm);
#endif
pm->pm_remove_all = true;
+
+ UVMHIST_LOG(pmaphist, " <-- done", 0, 0, 0, 0);
return false;
}