diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-08 11:42:44 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-11-08 11:42:44 +0000 |
commit | e75fa86a962cf0845f314a7003c25d207ee7741d (patch) | |
tree | ad47b92502b5921f7574d31b6b333819c2628996 /sys/uvm | |
parent | ced6d20e5a6c906aef393a8dac9c78ac6eaefd53 (diff) |
In ddb `show page', print the address of the vm_page_md substruct if
defined(__HAVE_VM_PAGE_MD), for convenience.
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_map.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 17227ca835b..738136bd1b6 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.145 2011/07/05 03:10:29 dhill Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.146 2011/11/08 11:42:43 miod Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -3807,12 +3807,17 @@ uvm_page_printit(struct vm_page *pg, boolean_t full, pg->uobject, pg->uanon, (long long)pg->offset, pg->loan_count); #if defined(UVM_PAGE_TRKOWN) if (pg->pg_flags & PG_BUSY) - (*pr)(" owning process = %d, tag=%s\n", + (*pr)(" owning process = %d, tag=%s", pg->owner, pg->owner_tag); else - (*pr)(" page not busy, no owner\n"); + (*pr)(" page not busy, no owner"); #else - (*pr)(" [page ownership tracking disabled]\n"); + (*pr)(" [page ownership tracking disabled]"); +#endif +#ifdef __HAVE_VM_PAGE_MD + (*pr)("\tvm_page_md %p\n", &pg->mdpage); +#else + (*pr)("\n"); #endif if (!full) |