Home | History | Annotate | Download | only in systat
History log of /src/usr.bin/systat/pigs.c
RevisionDateAuthorComments
 1.34  09-Nov-2021  nia systat(1): convert free(x); x = malloc(x * y) to reallocarr.

free on NULL is a guaranteed non-op.
 1.33  23-Nov-2012  christos fix wrong sysctl
 1.32  23-Nov-2012  christos use sysctl
 1.31  21-Oct-2009  rmind branches: 1.31.6; 1.31.12;
Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
 1.30  22-Oct-2006  christos use c99 initializers
consistently terminate nlist arrays with NULL not ""
 1.29  24-Dec-2005  matt Appease gcc 4.x
 1.28  26-Feb-2005  dsl WARNS=3
 1.27  13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.26  11-Jan-2004  jdolecek g/c SDEAD handling
 1.25  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.24  24-Feb-2003  dsl Create subwins that end one line from the bottom of the screen even
after the window is resized.
 1.23  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.22  04-May-2002  thorpej branches: 1.22.2;
Use kinfo_proc2.
 1.21  01-Dec-2000  simonb Remove extern variables and functions now declared in dkstats.h.
While here, remove 77 (!) unneed #includes.
 1.20  05-Jul-2000  ad - Add `boot', `run', `time' and `zero' commands to all IP displays. These work
as in the `vmstat' display mode. The default mode is now `time', not `boot'.
- ANSIfy.
- s@kre\(@vmstat\(@.
- __RCSID() police.
- Tweak inet.icmp display visual a little.
 1.19  04-Jun-2000  mycroft branches: 1.19.2;
Use hline() and variants in a bunch of places.
 1.18  04-Jun-2000  thorpej Use kern.cp_time to fetch cp_time[]. Don't support fetching it from
crash dumps yet, as that requires determining which CPU we should fetch
it from, etc.
 1.17  04-Jun-2000  perry include sys/sched.h to get definition of CPUSTATES
 1.16  08-Jan-2000  itojun branches: 1.16.2;
- implement layered help.
Suggested by: Andy Doran <ad@mr-magoo.sports.gov.uk>
- inet6.ip6 and ipsec menu
- u_quad_t printing fix
- #ifdefs to allow compilation on 1.4.x
 1.15  22-Jul-1999  thorpej Update for SDEAD.
 1.14  24-Apr-1999  ross Functional LP64 and type sanity fixes.
 1.13  21-Feb-1999  jwise branches: 1.13.2;
Add a new `ps' view to systat, which shows process information. This
view is identical to the output of `ps aux' except that a.) the RSS and VSZ
fields are one character wider and b.) it shows a zero value for the RSS
and %MEM columns of processes which report a negative RSS.
 1.12  19-Feb-1999  jwise Show pid as well as user name and command in pigs view. Makes hopping to
another window and killing the errant process (or even just distinguishing
it from like processes) rather easier.
 1.11  28-Jul-1998  mycroft const propagation.
 1.10  12-Jul-1998  mrg - KNF
- use snprintf
- don't overwrite the keyboard buffer (and make this sized on
the window size).
 1.9  17-May-1998  mycroft Fix pasto.
 1.8  17-May-1998  mycroft Don't display %cpu for zombies. It never decays, and makes the results look
odd.
 1.7  19-Oct-1997  lukem fix .Nm usage, deprecate register, getopt returns -1 not EOF, s/[br]*/[ms]*/
 1.6  21-Jul-1997  mrg - some KNF.
- use __RCSID().
- WARNS=1
 1.5  24-May-1997  jtc Use the new getmaxx and getmaxy macros instead of directly accessing
the private fields of WINDOW.
 1.4  13-Dec-1996  scottr Freshen up a bit:

- Replace deprecated sigblock() with sigprocmask()
- Redraw the current display if SIGWINCH is caught
- Style police
 1.3  29-Apr-1995  cgd various includes, casts, and cleanups...
 1.2  20-Jan-1995  jtc Changed to conform to NetBSD's new RCS Id convention.
 1.1  20-Jan-1995  jtc branches: 1.1.1;
Initial revision
 1.1.1.1  20-Jan-1995  jtc imported from 44lite
 1.13.2.1  26-Sep-1999  he Pull up revision 1.14 (requested by he):
LP64 and type sanity fixes, with visible effects of enabling echo
on commands and correct cursor placement after update.
 1.16.2.1  23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.19.2.1  01-Sep-2000  ad Pull up the following revisions, approved by releng-1-5:

- Add "boot", "run", "time" and "zero" commands to all IP displays. These work
as in the "vmstat" display mode. The default mode is now "time", not "boot".
- ANSIfy.
- s@kre\(@vmstat\(@.
- __RCSID() police.
- Tweak inet.icmp display visual a little.

netstat.c 1.19
pigs.c 1.20
ps.c 1.16
swap.c 1.13
systat.1 1.20
systat.h 1.7
tcp.c 1.7
vmstat.c 1.33
 1.22.2.2  04-May-2002  thorpej Minimal changes needed to build in an LWP'ified universe.
 1.22.2.1  04-May-2002  thorpej file pigs.c was added on branch nathanw_sa on 2002-05-04 18:53:05 +0000
 1.31.12.1  25-Feb-2013  tls resync with head
 1.31.6.1  16-Jan-2013  yamt sync with (a bit old) head

RSS XML Feed