Subject: CVS commit: src/usr.bin/pmap
To: None <source-changes@netbsd.org>
From: Andrew Brown <atatat@netbsd.org>
List: source-changes
Date: 04/04/2003 06:49:22
Module Name:	src
Committed By:	atatat
Date:		Fri Apr  4 03:49:21 UTC 2003

Modified Files:
	src/usr.bin/pmap: main.c main.h pmap.1 pmap.c pmap.h

Log Message:
Add some more intricate groveler options:

     -A address   Dumps the vm_amap structure found at address.

     -E address   Dumps the vm_map_entry structure found at address.

     -S address   Dumps the vmspace structure found at address.

     -V address   Dumps the vm_map structure found at address.

This required reorganizing the code a little, which led to some
cleanup (yay!).  These new methods are executed without any extra
privileges, so you need read access on /dev/mem or on the kernel core
into which you are digging.

This should be useful for, eg, examining amaps are corrupt when being
destroyed, which can cause a kernel panic (and, hence, are no longer
connected to a map entry, or the map entry is no longer connected to a
vm_map/vmspace).

The options in the man page have also been reorganized.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 src/usr.bin/pmap/main.c
cvs rdiff -r1.3 -r1.4 src/usr.bin/pmap/main.h
cvs rdiff -r1.9 -r1.10 src/usr.bin/pmap/pmap.1
cvs rdiff -r1.14 -r1.15 src/usr.bin/pmap/pmap.c
cvs rdiff -r1.2 -r1.3 src/usr.bin/pmap/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.