Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jul 2025 04:57:44 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3a2e1feea91e - stable/14 - amd64 ddb 'show pte': print both pte VA in recursive map and pte content
Message-ID:  <202507040457.5644viHZ050239@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=3a2e1feea91ea1c9f6ebb9a0450a7158f6871d57

commit 3a2e1feea91ea1c9f6ebb9a0450a7158f6871d57
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-06-27 04:06:39 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-07-04 04:57:03 +0000

    amd64 ddb 'show pte': print both pte VA in recursive map and pte content
    
    (cherry picked from commit 289a7a790cf74c679123a543ae95ac1be7659fad)
---
 sys/amd64/amd64/pmap.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 97e59123df97..84cab304af6d 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -12138,7 +12138,7 @@ DB_SHOW_COMMAND(pte, pmap_print_pte)
 
 	if (pmap_is_la57(pmap)) {
 		pml5 = pmap_pml5e(pmap, va);
-		db_printf(" pml5e 0x%016lx", *pml5);
+		db_printf(" pml5e@0x%016lx 0x%016lx", (uint64_t)pml5, *pml5);
 		if ((*pml5 & PG_V) == 0) {
 			db_printf("\n");
 			return;
@@ -12147,25 +12147,25 @@ DB_SHOW_COMMAND(pte, pmap_print_pte)
 	} else {
 		pml4 = pmap_pml4e(pmap, va);
 	}
-	db_printf(" pml4e 0x%016lx", *pml4);
+	db_printf(" pml4e@0x%016lx 0x%016lx", (uint64_t)pml4, *pml4);
 	if ((*pml4 & PG_V) == 0) {
 		db_printf("\n");
 		return;
 	}
 	pdp = pmap_pml4e_to_pdpe(pml4, va);
-	db_printf(" pdpe 0x%016lx", *pdp);
+	db_printf(" pdpe@0x%016lx 0x%016lx", (uint64_t)pdp, *pdp);
 	if ((*pdp & PG_V) == 0 || (*pdp & PG_PS) != 0) {
 		db_printf("\n");
 		return;
 	}
 	pde = pmap_pdpe_to_pde(pdp, va);
-	db_printf(" pde 0x%016lx", *pde);
+	db_printf(" pde@0x%016lx 0x%016lx", (uint64_t)pde, *pde);
 	if ((*pde & PG_V) == 0 || (*pde & PG_PS) != 0) {
 		db_printf("\n");
 		return;
 	}
 	pte = pmap_pde_to_pte(pde, va);
-	db_printf(" pte 0x%016lx\n", *pte);
+	db_printf(" pte@0x%016lx 0x%016lx\n", (uint64_t)pte, *pte);
 }
 
 DB_SHOW_COMMAND(phys2dmap, pmap_phys2dmap)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507040457.5644viHZ050239>