History log of /src/usr.bin/pmap |
Revision | Date | Author | Comments |
1.8 | 23-Dec-2016 |
mrg | for 64 bit mips platforms where we built userland largely as n32 by default, build a handful of tools as n64 so they work properly.
unfortunately, they're also static as dynamic n64 has a problem.
of these tools pstat is probably the lowest hanging fruit to convert to sysctl. systat would be close were it not for the netstat screen, which includes netstat itself.
the rest are difficult to perhaps foolish.
the upside is that netstat, pmap and fstat all work properly now.
|
1.7 | 23-Jan-2016 |
christos | branches: 1.7.2; Define _KERNTYPES for things that need it.
|
1.6 | 14-Dec-2015 |
christos | use ecalloc
|
1.5 | 26-May-2011 |
joerg | Default to -Wno-sign-compare -Wno-pointer-sign for clang. Push -Wno-array-bounds down to the cases that depend on it. Selectively disable warnings for 3rd party software or non-trivial issues to be reviewed later to get clang -Werror to build most of the tree.
|
1.4 | 02-Jan-2008 |
yamt | remove no longer necessary lockdebug hacks.
|
1.3 | 28-May-2007 |
tls | branches: 1.3.4; Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to various string and memory copy and set functions (as well as a few system calls and other miscellany) where known at function entry. RedHat has evidently built all "core system packages" with this option for some time.
This option should be used at the top of Makefiles (or Makefile.inc where this is used for subdirectories) but after any setting of LIB.
This is only useful for userland code, and cannot be used in libc or in any code which includes the libc internals, because it overrides certain libc functions with macros. Some effort has been made to make USE_FORT=yes work correctly for a full-system build by having the bsd.sys.mk logic disable the feature where it should not be used (libc, libssp iteself, the kernel) but no attempt has been made to build the entire system with USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.
Adjust the system build so that all programs and libraries that are setuid, directly handle network data (including serial comm data), perform authentication, or appear likely to have (or have a history of having) data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default, with the exception of libc, which cannot use USE_FORT and thus uses only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no per-directory or in a system build will disable if desired.
|
1.2 | 08-Jan-2003 |
atatat | Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it would fail in spectacular ways on LOCKDEBUG kernels) by compiling the groveler code twice (the second time with LOCKDEBUG defined so that the appropriate structures get larger in the right way). We currently decide if we are operating on a kernel with LOCKDEBUG enabled if the kernel's vm_map has referential integrity between a few pointers and/or values.
Also, if you use more than one -v, you get a * on a line by itself in between gaps in entries. It makes finding gaps much easier visually.
|
1.1 | 01-Sep-2002 |
atatat | Move pmap(1) to /usr/bin (from /usr/sbin) where it belongs.
|
1.3.4.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.7.2.1 | 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.1 | 01-Sep-2002 |
atatat | Move pmap(1) to /usr/bin (from /usr/sbin) where it belongs.
|
1.30 | 21-Aug-2022 |
mlelstv | Add -t option to print pmap as underlying RB tree. Report gap/maxgap fields when dumping vm_map structure.
|
1.29 | 04-Nov-2020 |
chs | Restrict to root any command option that prints kernel addresses.
|
1.28 | 22-Mar-2020 |
ad | - Don't copy the entire namecache only to look up a few names. Walk the data structures like cache_revlookup().
- nchash and mb_map are gone. module_map replaced lkm_map.
|
1.27 | 13-Sep-2019 |
christos | deal with variable length namecache entries.
|
1.26 | 14-Dec-2015 |
christos | branches: 1.26.16; use ecalloc
|
1.25 | 13-Dec-2015 |
christos | PR/50546: David Binderman: Fix bad sizeof
|
1.24 | 25-Oct-2011 |
jym | Move getuid() out of the loop, uid should not change behind our back. KNF.
|
1.23 | 25-Oct-2011 |
jym | kill(2) might not be a good test after all, users can send signals to setuid binaries (like SIGINT for ping(8)). So apply the exact same rights as procfs, and test uid against proc p_uid (real owner of process).
Bail out if we are not root and we attempt to print mappings of a process that the user does not really own.
|
1.22 | 18-Oct-2011 |
jym | Disallow printing of kernel mappings if we are not root.
pid 0 is a special case for kill(pid, 0), and unlikely to be the correct test there. This follows the procfs "mem" rights changes that happened some time ago.
|
1.21 | 23-Jun-2011 |
christos | Don't give out information about processes we can't control.
|
1.20 | 13-Apr-2009 |
lukem | Fix WARNS=4 issues (-Wcast-qual -Wextra -Wsign-compare)
|
1.19 | 17-Jun-2008 |
christos | branches: 1.19.6; From skd: Delete kernel_floor tests. They don't make sense on amd64.
|
1.18 | 28-Apr-2008 |
martin | branches: 1.18.2; Remove clause 3 and 4 from TNF licenses
|
1.17 | 02-Jan-2008 |
yamt | branches: 1.17.4; remove no longer necessary lockdebug hacks.
|
1.16 | 31-Jan-2004 |
atatat | branches: 1.16.24; Lint police.
|
1.15 | 31-Jan-2004 |
atatat | Unfold the KDEREF() macros a little, and tweak the LOCKDEBUG detection code, to detect a KDEREF failure instead of simply aborting. If the KDEREF fails, we're obviously not_using_lockdebug().
|
1.14 | 06-Jan-2004 |
atatat | Find the buf_map symbol, so that the submap can be labeled properly.
|
1.13 | 17-Sep-2003 |
yamt | redo the previous in a different way; use vm_map_min/max macros.
|
1.12 | 17-Sep-2003 |
yamt | update lockdebug detection to follow uvm_map.h rev.1.35. (vm_map.header.{start,end} was swapped.)
|
1.11 | 31-Jul-2003 |
yamt | remove remaining v_id.
|
1.10 | 24-Jul-2003 |
atatat | Though I cannot reproduce the failure (which I suspect is rather system dependent), the analysis provided in PR misc/22089 is correct. Therefore, allocate one more slot and suck one more slot from the kernel.
|
1.9 | 04-May-2003 |
atatat | Build main.c with LOCKDEBUG defined so that it gets the larger kbit definition. Since we're now passing it into pmap.c which is already compiled that way, it would be nice if it was the right size.
Also, fix a memset bug that caused a segmentation fault when printing the kernel's vm_map.
|
1.8 | 16-Apr-2003 |
wiz | Sort options in usage.
|
1.7 | 04-Apr-2003 |
atatat | 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.
|
1.6 | 29-Mar-2003 |
he | Introduce a "size_t" variable for use with sysctl(3). Fixes compile problem observed on evbarm.
|
1.5 | 28-Mar-2003 |
atatat | Add the capability to dump the struct vm_amap and the am_anon, am_bckptr, am_slots, and am_anon data, if the vm_map_entry has an amap. This adds three new debug "bits" to the -D argument, so the namei cache dumping "bit" has been moved up.
Also, change the * that gets emitted with -vv to indicate the number of pages skipped and the size of the area (in kilobytes).
|
1.4 | 27-Feb-2003 |
atatat | Clean up code in places, add some more (possible) submap names, make better use of the submap names when dumping the kernel map, clean up the "interface" between the main and LOCKDEBUG dependent pmap modules, and make the heap identification work better.
|
1.3 | 16-Jan-2003 |
atatat | Print the string as if it's a string. Don't print the pointer. It's useless for the non-omniscient (who, by definition, would have no need for this program anyway).
|
1.2 | 09-Jan-2003 |
atatat | More properly handle the setgid privileges that we have, casting them out if using them might be unsafe.
|
1.1 | 08-Jan-2003 |
atatat | Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it would fail in spectacular ways on LOCKDEBUG kernels) by compiling the groveler code twice (the second time with LOCKDEBUG defined so that the appropriate structures get larger in the right way). We currently decide if we are operating on a kernel with LOCKDEBUG enabled if the kernel's vm_map has referential integrity between a few pointers and/or values.
Also, if you use more than one -v, you get a * on a line by itself in between gaps in entries. It makes finding gaps much easier visually.
|
1.16.24.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.17.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.18.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.19.6.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.26.16.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.8 | 09-Sep-2023 |
ad | - Shrink namecache entries to 64 bytes on 32-bit platforms and use 32-bit key values there for speed (remains 128 bytes & 64-bits on _LP64). - Comments.
|
1.7 | 21-Aug-2022 |
mlelstv | Add -t option to print pmap as underlying RB tree. Report gap/maxgap fields when dumping vm_map structure.
|
1.6 | 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.5 | 31-Jul-2003 |
yamt | branches: 1.5.32; remove remaining v_id.
|
1.4 | 04-Apr-2003 |
atatat | 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.
|
1.3 | 28-Mar-2003 |
atatat | Add the capability to dump the struct vm_amap and the am_anon, am_bckptr, am_slots, and am_anon data, if the vm_map_entry has an amap. This adds three new debug "bits" to the -D argument, so the namei cache dumping "bit" has been moved up.
Also, change the * that gets emitted with -vv to indicate the number of pages skipped and the size of the area (in kilobytes).
|
1.2 | 27-Feb-2003 |
atatat | Clean up code in places, add some more (possible) submap names, make better use of the submap names when dumping the kernel map, clean up the "interface" between the main and LOCKDEBUG dependent pmap modules, and make the heap identification work better.
|
1.1 | 08-Jan-2003 |
atatat | Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it would fail in spectacular ways on LOCKDEBUG kernels) by compiling the groveler code twice (the second time with LOCKDEBUG defined so that the appropriate structures get larger in the right way). We currently decide if we are operating on a kernel with LOCKDEBUG enabled if the kernel's vm_map has referential integrity between a few pointers and/or values.
Also, if you use more than one -v, you get a * on a line by itself in between gaps in entries. It makes finding gaps much easier visually.
|
1.5.32.1 | 18-May-2008 |
yamt | sync with head.
|
1.20 | 21-Aug-2022 |
mlelstv | Add -t option to print pmap as underlying RB tree. Report gap/maxgap fields when dumping vm_map structure.
|
1.19 | 03-Jul-2017 |
wiz | Remove workaround for ancient HTML generation code.
|
1.18 | 13-Apr-2014 |
snj | Change some standard exit status text to ".Ex -std" From Eitan Adler in PR bin/47790.
|
1.17 | 14-May-2010 |
joerg | branches: 1.17.6; 1.17.12; 1.17.22; Explicitly close quote.
|
1.16 | 22-Mar-2010 |
joerg | Use .In instead of .Aq Pa for header files.
|
1.15 | 15-Feb-2009 |
wiz | Add Xref to pmap(9), from Anon Ymous. Prepare for HTML output.
|
1.14 | 30-Apr-2008 |
martin | branches: 1.14.8; Convert TNF licenses to new 2 clause variant
|
1.13 | 12-Jan-2008 |
mkirby | branches: 1.13.4; Fix a small grammatical error.
|
1.12 | 17-Feb-2004 |
wiz | branches: 1.12.24; Some fixes and formatting changes from jmc@openbsd.
|
1.11 | 16-Apr-2003 |
wiz | Sort options in SYNOPSIS, grammar fix.
|
1.10 | 04-Apr-2003 |
atatat | 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.
|
1.9 | 28-Mar-2003 |
atatat | Add the capability to dump the struct vm_amap and the am_anon, am_bckptr, am_slots, and am_anon data, if the vm_map_entry has an amap. This adds three new debug "bits" to the -D argument, so the namei cache dumping "bit" has been moved up.
Also, change the * that gets emitted with -vv to indicate the number of pages skipped and the size of the area (in kilobytes).
|
1.8 | 22-Feb-2003 |
atatat | Properly print the VM_MAP_TOPDOWN flag if it is set, document the VM_MAP_TOPDOWN flag (and the VM_MAP_DYING flag, since it never got documented before), minor tweak to one of the examples, and use the UVM_ET_IS*() macros instead of doing the same work manually.
|
1.7 | 14-Feb-2003 |
grant | The correct capitalisation of 'NetBSD.org' is (you guessed it) 'NetBSD.org'.
some mdoc fixes.
|
1.6 | 19-Jan-2003 |
atatat | The next release will be 2.0, not 1.7.
|
1.5 | 08-Jan-2003 |
atatat | Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it would fail in spectacular ways on LOCKDEBUG kernels) by compiling the groveler code twice (the second time with LOCKDEBUG defined so that the appropriate structures get larger in the right way). We currently decide if we are operating on a kernel with LOCKDEBUG enabled if the kernel's vm_map has referential integrity between a few pointers and/or values.
Also, if you use more than one -v, you get a * on a line by itself in between gaps in entries. It makes finding gaps much easier visually.
|
1.4 | 30-Sep-2002 |
grant | New sentence, new line.
|
1.3 | 17-Sep-2002 |
atatat | Make error messages a little more informative. Add -R option to recurse into submaps (a kernel thing) as suggested by Chuck Cranor, with the output from these entries indented. Clean up and rework code slightly, to make the recursion task much easier. Also, add a note to the BUGS section in the man page thats mentions that stuff "just won't work right" unless pmap is reading from the proper kernel.
|
1.2 | 13-Sep-2002 |
atatat | Add verbose support to the -l output, tweak verbose support for -d output, and tweak the man page (running pmap(1) vs. the kernel_map can have a *very* visible effect).
|
1.1 | 01-Sep-2002 |
atatat | Move pmap(1) to /usr/bin (from /usr/sbin) where it belongs.
|
1.12.24.1 | 23-Mar-2008 |
matt | sync with HEAD
|
1.13.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.14.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.17.22.1 | 10-Aug-2014 |
tls | Rebase.
|
1.17.12.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.17.6.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.58 | 09-Sep-2023 |
ad | - Shrink namecache entries to 64 bytes on 32-bit platforms and use 32-bit key values there for speed (remains 128 bytes & 64-bits on _LP64). - Comments.
|
1.57 | 21-Aug-2022 |
mlelstv | Add -t option to print pmap as underlying RB tree. Report gap/maxgap fields when dumping vm_map structure.
|
1.56 | 04-Nov-2020 |
chs | Restrict to root any command option that prints kernel addresses.
|
1.55 | 22-Mar-2020 |
ad | - Don't copy the entire namecache only to look up a few names. Walk the data structures like cache_revlookup().
- nchash and mb_map are gone. module_map replaced lkm_map.
|
1.54 | 09-May-2018 |
christos | branches: 1.54.2; handle field rename.
|
1.53 | 04-Oct-2017 |
kamil | branches: 1.53.2; pmap: Refresh debugging facilities
Print vm_aslr_delta_mmap from 'struct vmspace'. Print the WANTVA bit of 'flags' from 'struct vm_map'. Replace %x with %#x, this improves readability of hex vs dec numbers.
Sponsored by <The NetBSD Foundation>
|
1.52 | 14-Dec-2015 |
christos | use ecalloc
|
1.51 | 29-Oct-2012 |
para | fix format string
|
1.50 | 29-Oct-2012 |
para | get rid of not used uvm_map flag (UVM_MAP_KMAPENT)
|
1.49 | 19-Feb-2012 |
rmind | branches: 1.49.2; G/C VM_MAP_INTRSAFE flag
|
1.48 | 27-Jan-2012 |
para | extending vmem(9) to be able to allocated resources for it's own needs. simplifying uvm_map handling (no special kernel entries anymore no relocking) make malloc(9) a thin wrapper around kmem(9) (with private interface for interrupt safety reasons)
releng@ acknowledged
|
1.47 | 11-Oct-2011 |
tsutsui | branches: 1.47.2; Consistently use "%#"PRIxVADDR to print VA, not "0x%#"PRIxVADDR or "0x%"PRIxVADDR etc. Noticed by Y.Sugahara.
|
1.46 | 12-Jun-2011 |
mrg | an_ref is now a uintptr_t.
|
1.45 | 14-Dec-2009 |
uebayasi | branches: 1.45.4; Fix typo in previous.
|
1.44 | 14-Dec-2009 |
uebayasi | Merge from matt-nb5-mips64; adapt to vaddr_t / vsize_t format specifiers.
|
1.43 | 13-Apr-2009 |
lukem | Fix WARNS=4 issues (-Wcast-qual -Wextra -Wsign-compare)
|
1.42 | 29-Dec-2008 |
christos | branches: 1.42.2; handle 64 bit time_t/dev_t
|
1.41 | 28-Apr-2008 |
martin | branches: 1.41.10; Remove clause 3 and 4 from TNF licenses
|
1.40 | 02-Jan-2008 |
yamt | branches: 1.40.4; remove no longer necessary lockdebug hacks.
|
1.39 | 24-Dec-2007 |
ad | No need to list every file system type in this file.
|
1.38 | 10-Oct-2007 |
ad | Merge from vmlocking:
- Split vnode::v_flag into three fields, depending on field locking. - simple_lock -> kmutex in a few places. - Fix some simple locking problems.
|
1.37 | 21-Jul-2007 |
ad | branches: 1.37.4; 1.37.6; VM_MAP_BUSY, VM_MAP_WANTLOCK are no more.
|
1.36 | 29-Jun-2007 |
rumble | Add read-only support for SGI's Extent File System.
Reviewed by pooka@.
|
1.35 | 06-Mar-2007 |
dillo | Complete rename of hfsp to hfs, requested by thorpej.
|
1.34 | 05-Mar-2007 |
dillo | Integrate apmlabel and HFS+ file system.
|
1.33 | 04-Mar-2007 |
christos | add casts.
|
1.32 | 22-Oct-2006 |
pooka | "teach" about VT_PUFFS
|
1.31 | 24-Jun-2006 |
yamt | remove "XXX = <struct simplelock>" from -D output.
|
1.30 | 29-Dec-2005 |
tsutsui | Add preliminary support for System V Boot File System. Written by UCHIYAMA Yasushi <uch@netbsd>.
|
1.29 | 15-Dec-2005 |
reinoud | Stub to pmap.c to avoid unhandled enumeration value error. Its only used for printing purposes.
Will be modified later when UDF is finally committed after review. Comitting has been put on halt due to dispute over a patch.
|
1.28 | 10-Sep-2005 |
jmmv | Initial addition of tmpfs, an efficient memory file-system. This project was developed as part of Google's Summer of Code 2005 program. This change adds the kernel code, the mount_tmpfs utility, a regression test suite and does all other related changes to integrate these.
The file-system is still *experimental*. Therefore, it is disabled by default in all kernels. However, as typically done, a commented-out entry is added in them to ease its setup.
Note that I haven't commited the required mountd(8) changes to be able to export tmpfs file-systems because NFS support is still very unstable and because, before enabling it, I'd like to do some other changes.
OK'ed by my project mentor, William Studenmund (wrstuden@).
|
1.27 | 19-Aug-2005 |
christos | 64 bit inode changes
|
1.26 | 11-May-2005 |
jmc | Fix fallout from vm_anon changes
|
1.25 | 11-Feb-2005 |
chs | use vm_map_{min,max}() instead of dereferencing the vm_map pointer directly. define and use vm_map_set{min,max}() for modifying these values. remove the {min,max}_offset aliases for these vm_map fields to be more namespace-friendly. PR 26475.
|
1.24 | 01-Jan-2005 |
yamt | sync with kernel. (vm_map_entry::flags)
|
1.23 | 10-Nov-2004 |
christos | Add V_PTY
|
1.22 | 10-Feb-2004 |
matt | Deal with backing out of changes in: http://mail-index.netbsd.org/source-changes/2004/01/29/0027.html
|
1.21 | 31-Jan-2004 |
atatat | Lint police.
|
1.20 | 29-Jan-2004 |
yamt | follow the kernel vm_map_entry allocation strategy change.
|
1.19 | 21-Oct-2003 |
fvdl | Don't assign NULL to an integer.
|
1.18 | 30-Jul-2003 |
yamt | eliminate v_id.
|
1.17 | 15-Jul-2003 |
itojun | strlcat
|
1.16 | 04-May-2003 |
atatat | Build main.c with LOCKDEBUG defined so that it gets the larger kbit definition. Since we're now passing it into pmap.c which is already compiled that way, it would be nice if it was the right size.
Also, fix a memset bug that caused a segmentation fault when printing the kernel's vm_map.
|
1.15 | 04-Apr-2003 |
atatat | 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.
|
1.14 | 28-Mar-2003 |
atatat | Add the capability to dump the struct vm_amap and the am_anon, am_bckptr, am_slots, and am_anon data, if the vm_map_entry has an amap. This adds three new debug "bits" to the -D argument, so the namei cache dumping "bit" has been moved up.
Also, change the * that gets emitted with -vv to indicate the number of pages skipped and the size of the area (in kilobytes).
|
1.13 | 27-Feb-2003 |
atatat | Clean up code in places, add some more (possible) submap names, make better use of the submap names when dumping the kernel map, clean up the "interface" between the main and LOCKDEBUG dependent pmap modules, and make the heap identification work better.
|
1.12 | 23-Feb-2003 |
atatat | Oops. Missed some possible UVM_ET_IS*() macro uses.
|
1.11 | 22-Feb-2003 |
atatat | Properly print the VM_MAP_TOPDOWN flag if it is set, document the VM_MAP_TOPDOWN flag (and the VM_MAP_DYING flag, since it never got documented before), minor tweak to one of the examples, and use the UVM_ET_IS*() macros instead of doing the same work manually.
|
1.10 | 08-Jan-2003 |
atatat | Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it would fail in spectacular ways on LOCKDEBUG kernels) by compiling the groveler code twice (the second time with LOCKDEBUG defined so that the appropriate structures get larger in the right way). We currently decide if we are operating on a kernel with LOCKDEBUG enabled if the kernel's vm_map has referential integrity between a few pointers and/or values.
Also, if you use more than one -v, you get a * on a line by itself in between gaps in entries. It makes finding gaps much easier visually.
|
1.9 | 06-Dec-2002 |
thorpej | Avoid a trigraph, and fix printf formats.
|
1.8 | 29-Oct-2002 |
thorpej | Don't truncate the vm_map_entry offset to 32-bits when printing.
|
1.7 | 17-Oct-2002 |
atatat | Provides better error messages from the symbol lookups (printing merely " == 1" is just *not* helpful).
Note which symbols were missing (better for bug reports, if anyone files one :).
Make the kernel submap symbols optional (sparc, sparc64, most powerpc, and the sh3 ports seem not to have a phys_map -- problem noted by myself yesterday).
Oh, and a little misc lint cleanup while I'm here.
|
1.6 | 12-Oct-2002 |
atatat | Print the contents of the aref (it's small and MI -- MD code here would be horrific).
Handle the new VM_MAP_DYING flag (and adjust the VM_MAP_TOPDOWN bit).
Check to see if 0, 1, and 2 are properly "open" and try to "adjust" if they're not. Emit no warnings or errors here.
|
1.5 | 19-Sep-2002 |
atatat | Provide names for the map and submaps when doing recursive verbose ddb-style output.
|
1.4 | 17-Sep-2002 |
atatat | Make error messages a little more informative. Add -R option to recurse into submaps (a kernel thing) as suggested by Chuck Cranor, with the output from these entries indented. Clean up and rework code slightly, to make the recursion task much easier. Also, add a note to the BUGS section in the man page thats mentions that stuff "just won't work right" unless pmap is reading from the proper kernel.
|
1.3 | 13-Sep-2002 |
atatat | Add verbose support to the -l output, tweak verbose support for -d output, and tweak the man page (running pmap(1) vs. the kernel_map can have a *very* visible effect).
|
1.2 | 01-Sep-2002 |
atatat | Unterminated comment. Grr...
|
1.1 | 01-Sep-2002 |
atatat | Move pmap(1) to /usr/bin (from /usr/sbin) where it belongs.
|
1.37.6.2 | 21-Jul-2007 |
ad | VM_MAP_BUSY, VM_MAP_WANTLOCK are no more.
|
1.37.6.1 | 21-Jul-2007 |
ad | file pmap.c was added on branch matt-mips64 on 2007-07-21 20:54:13 +0000
|
1.37.4.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.37.4.1 | 06-Nov-2007 |
matt | sync with HEAD
|
1.40.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.41.10.2 | 21-Apr-2010 |
matt | sync to netbsd-5
|
1.41.10.1 | 24-Aug-2009 |
matt | Fix some vaddr_t/vaddr_t type droppings.
|
1.42.2.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.45.4.1 | 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.47.2.2 | 30-Oct-2012 |
yamt | sync with head
|
1.47.2.1 | 17-Apr-2012 |
yamt | sync with head
|
1.49.2.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.53.2.1 | 21-May-2018 |
pgoyette | Sync with HEAD
|
1.54.2.1 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.14 | 21-Aug-2022 |
mlelstv | Add -t option to print pmap as underlying RB tree. Report gap/maxgap fields when dumping vm_map structure.
|
1.13 | 04-Nov-2020 |
chs | Restrict to root any command option that prints kernel addresses.
|
1.12 | 22-Mar-2020 |
ad | - Don't copy the entire namecache only to look up a few names. Walk the data structures like cache_revlookup().
- nchash and mb_map are gone. module_map replaced lkm_map.
|
1.11 | 13-Sep-2019 |
christos | Expose struct namecache.
|
1.10 | 09-Jun-2017 |
chs | branches: 1.10.6; rearrange sys/mount.h so that all of the kernel-only parts are together and not exposed to userland, except do expose struct mount if __EXPOSE_MOUNT is defined. define __EXPOSE_MOUNT in the kmem grovellers that want the definition. needed for ZFS.
|
1.9 | 22-Dec-2016 |
mrg | add the member name to an error string so we know what object failed while being requested.
|
1.8 | 13-Apr-2009 |
lukem | branches: 1.8.28; Fix WARNS=4 issues (-Wcast-qual -Wextra -Wsign-compare)
|
1.7 | 28-Apr-2008 |
martin | branches: 1.7.6; 1.7.8; 1.7.12; Remove clause 3 and 4 from TNF licenses
|
1.6 | 02-Jan-2008 |
yamt | branches: 1.6.4; remove no longer necessary lockdebug hacks.
|
1.5 | 23-Apr-2004 |
simonb | branches: 1.5.18; s/the the/the/ (only in sources that aren't regularly imported from elsewhere).
|
1.4 | 31-Jan-2004 |
atatat | Unfold the KDEREF() macros a little, and tweak the LOCKDEBUG detection code, to detect a KDEREF failure instead of simply aborting. If the KDEREF fails, we're obviously not_using_lockdebug().
|
1.3 | 04-Apr-2003 |
atatat | 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.
|
1.2 | 28-Mar-2003 |
atatat | Add the capability to dump the struct vm_amap and the am_anon, am_bckptr, am_slots, and am_anon data, if the vm_map_entry has an amap. This adds three new debug "bits" to the -D argument, so the namei cache dumping "bit" has been moved up.
Also, change the * that gets emitted with -vv to indicate the number of pages skipped and the size of the area (in kilobytes).
|
1.1 | 08-Jan-2003 |
atatat | Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it would fail in spectacular ways on LOCKDEBUG kernels) by compiling the groveler code twice (the second time with LOCKDEBUG defined so that the appropriate structures get larger in the right way). We currently decide if we are operating on a kernel with LOCKDEBUG enabled if the kernel's vm_map has referential integrity between a few pointers and/or values.
Also, if you use more than one -v, you get a * on a line by itself in between gaps in entries. It makes finding gaps much easier visually.
|
1.5.18.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.6.4.1 | 18-May-2008 |
yamt | sync with head.
|
1.7.12.1 | 24-Aug-2009 |
matt | Fix some vaddr_t/vaddr_t type droppings.
|
1.7.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.7.6.1 | 20-May-2012 |
riz | usr.bin/pmap/pmap.h patch
Fix build problem introduced by ticket #1759. [jdc, ticket #1760]
|
1.8.28.1 | 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.10.6.2 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.10.6.1 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.2 | 02-Jan-2008 |
yamt | remove no longer necessary lockdebug hacks.
|
1.1 | 08-Jan-2003 |
atatat | branches: 1.1.24; Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it would fail in spectacular ways on LOCKDEBUG kernels) by compiling the groveler code twice (the second time with LOCKDEBUG defined so that the appropriate structures get larger in the right way). We currently decide if we are operating on a kernel with LOCKDEBUG enabled if the kernel's vm_map has referential integrity between a few pointers and/or values.
Also, if you use more than one -v, you get a * on a line by itself in between gaps in entries. It makes finding gaps much easier visually.
|
1.1.24.1 | 09-Jan-2008 |
matt | sync with HEAD
|