| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
- make WARNS=6 clean for archs w/o strict alignment requirments
- add const, ANSIfy, remove unused vars, cast types for comparison
- thanks to differing definitions of VM_MIN_ADDRESS across our archs, we
need to trick the compiler to not complain about signedness. We could
either fix VM_MIN_ADDRESS to always be a simple integer or make the
check conditional on $ARCH.
Closes PRs: kern/42386, kern/83364
Reviewed by: bde
|
|
|
|
|
|
|
|
| |
- Restore support for fetching swap information from crash dumps via
kvm_get_swapinfo(3) to fix pstat -T/-s on crash dumps.
Reviewed by: arch@, phk
MFC after: 1 week
|
| |
|
| |
|
|
|
|
|
|
| |
layout is about to change.
The sysctl based method still returns correct information.
|
|
|
|
| |
the swap_pager layout.
|
| |
|
|
|
|
|
|
|
| |
that crept in recently. GCC will optimize the divides and multiplies for us.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 1 day
|
|
|
|
|
| |
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.
|
| |
|
| |
|
|
|
|
| |
via sysctl, and clean up some style and (size_t != int) issues.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sysctls exporting swap information. When running on a live kernel,
the sysctl's will now be used instead of kvm_read, allowing consumers of
this interface to run without privilege (setgid kmem). Retain the
ability to run on coredumps, or on a kernel using kmem if explicitly
pointed at one.
A side effect of this change is that kvm_getswapinfo() is faster now in
the general case. If the SWIF_DUMP_TREE flag is given (pstat -ss does
this), the radix tree walker, which still uses kvm_read in any case, is
invoked, and therefore does require privilege.
Submitted by: Thomas Moestl <tmoestl@gmx.net>
Reviewed by: freebsd-audit
|
|
|
|
| |
Use _PATH_* where where possible.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
and is module aware. Yes, this means that kvm_nlist(3) will find symbols
in loaded modules. The emulation of the nlist struct is pretty crude but
seems to work well enough for all the users in the tree that I found.
|
|
|
|
| |
Remove unused dev2budev() function.
|
| |
|
|
|
|
| |
that went away in January.
|
|
|
|
|
| |
Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
|
| |
|
|
|
|
| |
Hoped for by: wollman
|
|
|
|
| |
wrong radix for recursive subnodes.
|
| |
|
|
pstat, top, and systat.
|