uvm_map_printit:

- print wired_count if available.
- fix a printf format.
This commit is contained in:
yamt 2004-09-25 04:19:38 +00:00
parent 72b84bf041
commit 49fe2034a3
1 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_map.c,v 1.172 2004/05/19 22:02:05 he Exp $ */
/* $NetBSD: uvm_map.c,v 1.173 2004/09/25 04:19:38 yamt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.172 2004/05/19 22:02:05 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.173 2004/09/25 04:19:38 yamt Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@ -3867,8 +3867,13 @@ uvm_map_printit(struct vm_map *map, boolean_t full,
(*pr)("\t#ent=%d, sz=%d, ref=%d, version=%d, flags=0x%x\n",
map->nentries, map->size, map->ref_count, map->timestamp,
map->flags);
(*pr)("\tpmap=%p(resident=%d)\n", map->pmap,
#ifdef pmap_wired_count
(*pr)("\tpmap=%p(resident=%ld, wired=%ld)\n", map->pmap,
pmap_resident_count(map->pmap), pmap_wired_count(map->pmap));
#else
(*pr)("\tpmap=%p(resident=%ld)\n", map->pmap,
pmap_resident_count(map->pmap));
#endif
if (!full)
return;
for (entry = map->header.next; entry != &map->header;