summaryrefslogtreecommitdiff
path: root/bin/ps/ps.1
AgeCommit message (Collapse)Author
2016-10-26Document LC_CTYPE.Ingo Schwarze
The lack of this entry was reported by Jan Stary <hans at stare dot cz>. OK czarkoff@ jmc@
2016-10-19Make the description of COLUMNS a bit more readable.Ingo Schwarze
Triggered by a different patch from Michal Mazurek. Joint work by tb@, jmc@, and tedu@, but no one ever committed it.
2016-09-23Attempt to use stdout, stderr, or stdin terminal widths if they exist.Anthony J. Bentley
This behavior already existed but was unintentionally lost in revision 1.70 of ps.c. ok millert@ tb@
2016-09-08The bug about not displaying exact information because ps can't runTed Unangst
faster than the system is more of a caveat than a bug. The comment also dates back to ye olden times when the information was collected via multiple kvm reads. The sysctl interface provides a much more consistent snapshot, albeit one that may be outdated by the time it's printed. Reword accordingly.
2016-09-08etime isn't just an alias for start. the output format is different.Ted Unangst
diff from Carlin Bingham. ok millert.
2016-04-25remove list item left in previous;Jason McIntyre
2016-04-25remove references to systraceTed Unangst
2016-03-17simplify previous; ok bentleyJason McIntyre
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate. ok deraadt@; man bits ok jmc@
2015-10-22document tid keyword.Sebastian Benoit
found with and ok bluhm@
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-07-19show tame flagTheo de Raadt
2015-06-29After removing the p_swtime from the kernel, ps always printed 0.0Alexander Bluhm
as %cpu time. Remove the calculation in ps that includes the process lifetime. Just print the p_pctcpu value, that was done before when ps was called with -C. Keep -C as a no-op for existing scripts. OK millert@
2015-02-11Document P_CANTSLEEPPhilip Guenther
2014-07-13Update procflags list, add PS_SYSTEM, PS_EMBRYO, PS_ZOMBIE andClaudio Jeker
PS_NOBROADCASTKILL. The resulting table is shifted so far right that a few additional lines had to be wrapped. Not ideal but the best we can do at the moment.
2014-06-12somehow i missed -vW as extensions;Jason McIntyre
From: Martin Natano
2014-06-05Add support for COLUMNS env variable, inspired by FreeBSD but with a dashPhilip Guenther
of strtonum() from millert@ sprinkled on top. Also, we've always supported TZ for formatting dates, so say so. ok jmc@ millert@
2014-05-21document which keywords are posix conformant;Jason McIntyre
ok guenther sobrado
2014-05-17better description for -A and -a, with help from millert;Jason McIntyre
ok millert sobrado guenther
2014-05-16more STANDARDS fleshing; ok sobrado millertJason McIntyre
2014-05-15more for STANDARDS: unsupported lists (noted by guenther) and env vars;Jason McIntyre
2014-05-15flesh out STANDARDS; ok guentherJason McIntyre
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2014-01-20P_NOZOMBIE and P_STOPPED are PS_* process flags nowPhilip Guenther
2013-12-27Document the P_SUSPSINGLE flag bitPhilip Guenther
2013-10-28add -A (-ax) support; from Lauri Tirkkonen with some option sorting.Okan Demirmen
ok guenther@ jmc@
2013-10-08Fix delivery of SIGPROF and SIGVTALRM to threaded processes by havingPhilip Guenther
hardclock() set a flag on the running thread and force AST processing, and then have the thread signal itself from userret(). idea and flag names from FreeBSD ok jsing@
2013-09-22Stop merging the per-thread and per-process flags when reportingPhilip Guenther
them via sysctl(KERN_PROC). In struct kinfo_proc the per-process flags move to p_psflags, leaving the per-thread flags in p_flags. Flag descriptions in ps(1) updated to be less obtuse. discussed with matthew@ some time ago; ok jca@, manpage bits ok jmc@
2012-08-02Apply profiling to all threads instead of just the thread that calledPhilip Guenthe
profil() by moving P_PROFIL from proc->p_flag to process->ps_flags with matching adjustment in fork1() and exit1() ok matthew@
2012-04-12Add maxrss keyword for the ru_maxrss value...which ariane@ is making workPhilip Guenthe
(missed commit pointed out by jmc@)
2012-01-07Add rtable id and thread id to struct kinfo_proc (and fix process id)Philip Guenthe
and add an 'rtableid' keyword to ps. Add rtable id, thread id, and socket splice info to struct kinfo_file2 and make fstat display socket splice information. Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major Socket splice info and corrections from bluhm@ "Lovely" deraadt@
2011-12-16-H is an extension to posix;Jason McIntyre
2011-12-11Make ps understand -o cwd using the new KERN_PROC_CWD sysctl. Some helpNicholas Marriott
and suggestions from guenther. ok guenther
2011-10-03list the fields in the default display in the order of display;Jason McIntyre
from Alexander Best
2011-09-25Add -H option to show rthreads, hiding them by defaultPhilip Guenthe
Diff from uwe@
2011-07-06Remove mention of P_BIGLOCK.Artur Grabowski
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-03Update the description of the 'flags' keyword, including the known values,Philip Guenthe
aligning the table for easier reading. ok ariane@, millert@, deraadt@
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2009-02-08updates to IEEE Std 1003.1-2008;Jason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-21Do not mention /dev/drum anymore, since we won't use it. With tweaks fromMiod Vallat
jmc@
2008-06-17better description of what ps without arguments does;Jason McIntyre
from Pierre Riteau ok otto
2008-03-17better .Nd; from Pierre RiteauJason McIntyre
ok sobrado
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2006-11-29Do not test for processes being swapped out since this can't happen anymore.Miod Vallat
2006-11-02overhaul the keywords section;Jason McIntyre