The NetBSD Project

CVS log for src/usr.bin/pmap/main.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / pmap

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Aug 21 07:46:52 2022 UTC (2 years, 3 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +9 -4 lines
Add -t option to print pmap as underlying RB tree.
Report gap/maxgap fields when dumping vm_map structure.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Nov 4 01:37:55 2020 UTC (4 years, 1 month ago) by chs
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +9 -9 lines
Restrict to root any command option that prints kernel addresses.

Revision 1.26.16.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:45 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +17 -91 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Mar 22 14:41:32 2020 UTC (4 years, 8 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +17 -104 lines
- 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.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Sep 13 13:55:24 2019 UTC (5 years, 2 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20191119, is-mlppp-base, is-mlppp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +17 -4 lines
deal with variable length namecache entries.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Dec 14 03:15:10 2015 UTC (8 years, 11 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -4 lines
use ecalloc

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Dec 13 18:09:00 2015 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -8 lines
PR/50546: David Binderman: Fix bad sizeof

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Oct 25 23:45:19 2011 UTC (13 years, 1 month ago) by jym
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +6 -6 lines
Move getuid() out of the loop, uid should not change behind our back. KNF.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Oct 25 22:13:22 2011 UTC (13 years, 1 month ago) by jym
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +24 -20 lines
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.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Oct 18 20:54:56 2011 UTC (13 years, 1 month ago) by jym
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +15 -7 lines
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.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Jun 23 22:50:53 2011 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +8 -2 lines
Don't give out information about processes we can't control.

Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:20:01 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +26 -27 lines
Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Apr 13 00:27:38 2009 UTC (15 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +26 -27 lines
Fix WARNS=4 issues (-Wcast-qual -Wextra -Wsign-compare)

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:32:11 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +3 -9 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jun 17 15:54:45 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -9 lines
From skd: Delete kernel_floor tests. They don't make sense on amd64.

Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:09 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +2 -9 lines
sync with head.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:14 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.16.24.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:00:52 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +4 -93 lines
sync with HEAD

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jan 2 17:23:31 2008 UTC (16 years, 11 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -93 lines
remove no longer necessary lockdebug hacks.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jan 31 20:53:55 2004 UTC (20 years, 10 months ago) by atatat
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
Lint police.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jan 31 18:25:27 2004 UTC (20 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -3 lines
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().

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Jan 6 14:01:19 2004 UTC (20 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -5 lines
Find the buf_map symbol, so that the submap can be labeled properly.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Sep 17 22:06:50 2003 UTC (21 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
redo the previous in a different way; use vm_map_min/max macros.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Sep 17 21:59:52 2003 UTC (21 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
update lockdebug detection to follow uvm_map.h rev.1.35.
(vm_map.header.{start,end} was swapped.)

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Jul 31 15:47:57 2003 UTC (21 years, 4 months ago) by yamt
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -7 lines
remove remaining v_id.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jul 24 00:43:50 2003 UTC (21 years, 4 months ago) by atatat
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
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.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun May 4 15:09:46 2003 UTC (21 years, 7 months ago) by atatat
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +22 -9 lines
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.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Apr 16 12:15:07 2003 UTC (21 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4 lines
Sort options in usage.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Apr 4 03:49:20 2003 UTC (21 years, 8 months ago) by atatat
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +110 -15 lines
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.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Mar 29 18:01:21 2003 UTC (21 years, 8 months ago) by he
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -4 lines
Introduce a "size_t" variable for use with sysctl(3).
Fixes compile problem observed on evbarm.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Mar 28 23:10:32 2003 UTC (21 years, 8 months ago) by atatat
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +13 -7 lines
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).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Feb 27 04:10:36 2003 UTC (21 years, 9 months ago) by atatat
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +54 -24 lines
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.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jan 16 15:34:18 2003 UTC (21 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
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).

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Jan 9 13:05:12 2003 UTC (21 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +15 -2 lines
More properly handle the setgid privileges that we have, casting them
out if using them might be unsafe.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jan 8 20:25:12 2003 UTC (21 years, 11 months ago) by atatat
Branches: MAIN
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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>