summaryrefslogtreecommitdiff
path: root/bin/ps
AgeCommit message (Collapse)Author
2014-02-19Remove some pointless inclusions os sys/user.hdsl
2014-01-15Bump date for previous.wiz
2014-01-15Make ps -s use LTIME instead of TIME in the default output format.mlelstv
2014-01-15Add an LTIME column that prints lwp cputime.mlelstv
2012-06-03Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) tojoerg
depend on new devname_r(3) as heart. Add /dev/pts magic directly to devname(3). While it can lead to returning non-existing paths, the behavior is more consistent that way. Drop caching layer in devname(3), it doesn't buy anything for the common case of having access to the database. Teach devname(3) proper fallback behavior of scanning /dev. Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-05-07Push logic to convert a ttyname to a device number into its ownjoerg
function. Improve dealing with ptyfs by explicitly handling missing pts/%d entries, if the kernel supports the pts device (PR 40813).
2012-04-15Increase width of table column so it formats more nicely.wiz
2012-04-15Choose better argument name for `-U' (sync with man page).wiz
From Bug Hunting in email.
2012-04-15- choose better argument name for `-U';wiz
- add argument names for options in man page; - improve wording, punctuation, capitalization. From Bug Hunting in email.
2012-03-20Use C89 function definitionsmatt
2012-03-15Remove trailing whitespace.wiz
2012-03-15Fix obsolete example (that referred to letters in process state that arechristos
not set anymore), and clarify their meaning.
2012-02-23The 'lstart' column uses strftime %c, not %C. Noted by mrg.dholland
2012-02-13Remove unused variable.wiz
From cppcheck via Henning Petersen in PR 46002.
2012-01-27Minor English improvements for -w, partly from Snader_LB.dholland
2011-08-29Use __deadjoerg
2011-08-14Document non-literal formatschristos
2011-06-13When converting from pages to kilobytes, cast the return value ofdholland
getpagesize() to size_t. For some reason getpagesize() is defined to return int, and several of the page counts we get come back from the kernel as int32_t; in LP64 without the cast the byte count will be computed in a 32-bit value and for large processes will overflow and become negative... and then remain negative when divided by 1024 to convert to kilobytes. Fixes a problem I hit the other day where I saw negative RSS, which turns out also to be PR 40642. Note: other logic in here will break down when we first get >2TB processes... and int32 page counts will break on >8TB processes. But hopefully we won't see any of that for a few years yet.
2011-02-13fix typo, from Randolf Richardson in PR 44559dholland
2011-01-22fix previous.christos
2011-01-22Make printing of lwp flags similar to the process one, identifying (O)nprocchristos
(K)ernel threads and scheduler (a)ctivations.
2010-07-28Do not check pcpu value against 100.0 but rather 99.95, to properlynjoly
deal with value rounding. From apb@.
2010-07-27Make %cpu drop the decimal part when reaching 100%, to stay in the 5njoly
expected columns.
2010-05-31Fix ps(1) and top(1) to show reasonable CPU numbers i.e. cpu_index() providedrmind
by the kernel, instead of CPU order number, which is generally random.
2010-05-14Don't break lines in .It, there be dragons in groff.joerg
2010-03-22Use .In instead of .Aq Pa for header filesjoerg
2009-10-21Bump date for uarea swap-out removal.wiz
2009-10-21Remove uarea swap-out functionality:rmind
- 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>.
2009-08-03Bump date for previous.wiz
2009-08-03Remove reference to P_SYSTRACE.dsl
Fixes PR/41426 (leave defn in sys/sysctl.h since the bit shouldn't be reused!)
2009-03-29- add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the totalmrg
address space available to processes. this limit exists in most other modern unix variants, and like most of them, our defaults are unlimited. remove the old mmap / rlimit.datasize hack. - adds the VMCMD_STACK flag to all the stack-creation vmcmd callers. it is currently unused, but was added a few years ago. - add a pair of new process size values to kinfo_proc2{}. one is the total size of the process memory map, and the other is the total size adjusted for unused stack space (since most processes have a lot of this...) - patch sh, and csh to notice RLIMIT_AS. (in some cases, the alias RLIMIT_VMEM was already present and used if availble.) - patch ps, top and systat to notice the new k_vm_vsize member of kinfo_proc2{}. - update irix, svr4, svr4_32, linux and osf1 emulations to support this information. (freebsd could be done, but that it's best left as part of the full-update of compat/freebsd.) this addresses PR 7897. it also gives correct memory usage values, which have never been entirely correct (since mmap), and have been very incorrect since jemalloc() was enabled. tested on i386 and sparc64, build tested on several other platforms. thanks to many folks for feedback and testing but most espcially chuq and yamt for critical suggestions that lead to this patch not having a special ugliness i wasn't happy with anyway :-)
2009-03-13Fix number of columns in .Bl. Escape %C.joerg
2009-02-14fix -Wsign-compare issueslukem
2009-02-03make sure the table stays aligned even if no groups are to be displayeddrochner
with the "groupnames" option
2009-02-03make sure the table stays aligned even if no groups are to be displayeddrochner
with the "groups" option
2008-12-28fix dev_t 64 bit issues.christos
2008-10-19Improve wording.wiz
2008-10-19Use 'O' for LSONPROC like solaris instead of bundling LSIDL, LSRUN, LSONPROCchristos
to 'R'
2008-09-26Sync usage with man page.wiz
2008-09-26Sort options.wiz
Remove systrace reference.
2008-09-26Add "ps -A" option. This displays information about all processes,apb
like BSD "ps -ax" or SYSV "ps -ef". It's specified in SUSv3. Also make some minor clarifications to the man page.
2008-07-20Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-05-26PR/38755: murray armfield: /bin posix programs missing setprogname and/orchristos
setlocale
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-03-10ps -t? needs to imply -x. Otherwise the non-x logic filters all the resultsdholland
out. Thanks to der Mouse for prompting me to fix it...
2008-02-10Add a CPUID keyword; idea and some of the code from Anon Ymouschristos
2007-12-31Remove systrace. Ok core@.ad
2007-12-12use __RCSID()lukem
2007-11-06Kill another use of PZERO.ad
2007-10-24make -s alter the default format rather than doing parsefmt.yamt
it allows users to use -o to replace it later.