summaryrefslogtreecommitdiffstats
path: root/bin/ps
Commit message (Collapse)AuthorAgeFilesLines
* MFC r275745:kib2014-12-271-1/+2
| | | | | | | | | | Add facility to stop all userspace processes. MFC r275753: Fix gcc build. MFC r275820: Add missed break.
* MFC r269656:kib2014-08-211-2/+1
| | | | | | | | | | Implement and use proc_realparent(9). MFC r270024 (by markj): Correct the order of arguments passed to LIST_INSERT_AFTER(). For merge, the p_treeflag member of struct proc was moved to the end of the structure, to keep KBI intact.
* MFC r267196:pluknet2014-06-262-1/+15
| | | | Add support for inspecting process flags set in p_flag2.
* MFC r265229,r265239:bdrewery2014-05-173-7/+62
| | | | Add -J to filter by matching jail IDs and names.
* MFC r256838:trasz2014-01-021-7/+1
| | | | | | Don't test arrays for being NULL. Sponsored by: The FreeBSD Foundation
* Add the ability to display the default FIB number for a process to thewill2013-08-262-0/+4
| | | | | | | | | | | | | | | | | | ps(1) utility, e.g. "ps -O fib". bin/ps/keyword.c: Add the "fib" keyword and default its column name to "FIB". bin/ps/ps.1: Add "fib" as a supported keyword. sys/compat/freebsd32/freebsd32.h: sys/kern/kern_proc.c: sys/sys/user.h: Add the default fib number for a process (p->p_fibnum) to the user land accessible process data of struct kinfo_proc. Submitted by: Oliver Fromme <olli@fromme.com>, gibbs
* Add a few examples.joel2013-03-151-1/+5
| | | | Obtained from: OpenBSD
* Document P_PPTRACE.kib2013-02-071-1/+2
| | | | MFC after: 2 weeks
* - Move 'showthreads' check out of fmt.c.jhb2013-01-192-2/+2
| | | | | - Update shadow copy of fmt_argv() prototype in w.c and fix calls for additional parameter.
* Include the thread name along with the command name when displaying thejhb2013-01-183-10/+16
| | | | | | | | | command name of a thread from a multi-threaded process that doesn't have an available argument list (such as kernel processes) and threads display is enabled via -H. Reviewed by: alfred, delphij, eric@vangyzen.net MFC after: 1 week
* Use kern.max_pid sysctl to obtain maximum PID number instead of using localpjd2012-12-121-3/+17
| | | | | | define. Reviewed by: jhb
* - Bump date.zont2012-09-181-1/+1
| | | | | | Submitted by: pluknet Approved by: kib (mentor) X-MFC-With: r240645
* - Add 'dsiz' and 'ssiz' keywords to show data and stack size respectively.zont2012-09-182-0/+6
| | | | | Approved by: kib (mentor) MFC after: 1 week
* Avoid passing uninitialized stack to addelem() if called with an empty arg.emaste2012-08-291-2/+2
| | | | PR: bin/171174
* ps: Fix memory leak when showing start/lstart for swapped-out process.jilles2012-07-151-4/+6
| | | | Spotted by: scan-build (uqs)
* Add 'cow' keyword to show per-process cow count.kib2012-05-232-1/+4
| | | | | Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week
* mandoc complains loudly when <TAB>s are misused in columnated lists. Fixjoel2012-03-291-31/+31
| | | | | this syntax violation and while I'm here also convert <TAB> to Ta and adjust quotation marks in order to prevent this problem in the future.
* Document P_ORPHAN.kib2012-03-081-1/+2
| | | | MFC after: 3 days
* Remove unused variables.ed2012-01-171-96/+30
| | | | | Simply annotate the function parameters with __unused, instead of adding the ve-variables. This makes the code build with GCC 4.7 and -Werror.
* Spelling fixes for bin/uqs2012-01-071-1/+1
|
* Remove yet another outdated note about procfs(5) being required.trociny2011-11-221-6/+0
| | | | Spotted by: arundel
* No need in procfs(5).trociny2011-11-222-25/+1
| | | | MFC after: 2 weeks
* For processes with no controlling terminal, display "-" in the TTY columntrasz2011-10-302-4/+8
| | | | | | instead of "?". Submitted by: arundel
* Correct a typo that was introduced in 225912gjb2011-10-021-1/+1
| | | | | | Submitted by: Valentin Nechayev (netch % netch!kiev!ua), arundel MFC after: 1 week With-MFC: 225908
* Tweaks to ps(1):gjb2011-10-011-9/+16
| | | | | | | | | | | | | | | | - there's no reason the semantics of the -x flag are being explained in the -a flag description - be more precise regarding the relation between the -a flag and the security.bsd.see_other_uids sysctl - describe the format of the -t flag's argument - 'con' no longer is a possible entry in the 'TT' column - explain that the 'TT' column refers to pseudo-terminals via mere numbers - add a hint in the 'tt' keyword description that a keyword 'tty' exists, which will give the full terminal pathname Submitted by: arundel (via docs@) (original) MFC after: 1 week With-MFC: 225908
* Reorder default ps(1) output according to reality.gjb2011-10-011-2/+2
| | | | | Submitted by: arundel (via docs@) MFC after: 1 week
* Make ps(1) automatically size its column widths.trasz2011-09-295-603/+451
|
* Get rid of major/minor number distinction.ed2011-09-281-6/+2
| | | | | | | | | | | | | | | | | | | | | | As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino. Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)): "If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question." This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer. Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
* Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.bz2011-07-182-9/+9
| | | | | | | | | Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib)
* Bump date after the previous commit.pluknet2011-07-011-1/+1
|
* Update and sort the list of the available keywords.pluknet2011-07-011-6/+8
|
* Add "gid" and "group" keywords to display the effective group IDtrasz2011-06-144-2/+34
| | | | | | | and effective group name. Also, add "egid", "egroup" and "euid" aliases. PR: bin/146331 Submitted by: Jeremie Le Hen <jeremie at le-hen dot org>
* Fix some typos under bin/uqs2011-05-221-1/+1
| | | | Found by: codespell
* Spelling in P_HADTHREADS.pluknet2011-05-201-1/+1
| | | | MFC after: 1 week
* Fix the description of the "paddr" keyword. It shows a processpluknet2011-05-201-1/+1
| | | | | | pointer just like a dublicating "uprocp". MFC after: 1 week
* Document problems with -d/-w and the fact that -X is the default.trasz2011-04-181-2/+9
| | | | | Suggested by: arundel@ Reviewed by: arundel@
* Get rid of DSIZ; instead just call the sizing function if provided.trasz2011-04-123-16/+15
|
* Add proper width calculation for time fields (time, cputime and usertime).trasz2011-03-243-5/+52
| | | | This fixes the ugly overflow in "ps aux" output for "[idle]".
* Make "LOGIN" and "CLASS" columns width scale properly instead of wasting space.trasz2011-03-243-5/+34
|
* Implement the usertime and systime keywords for ps, printing thekib2011-03-174-21/+63
| | | | | | | corresponding times reported by getrusage(). Submitted by: Dan Nelson <dnelson allantgroup com> MFC after: 1 week
* Export login class information via kinfo and make it possible to viewtrasz2011-03-054-1/+28
| | | | it using "ps -o class".
* Document P_FOLLOWFORK.kib2011-01-251-0/+1
| | | | MFC after: 2 weeks
* Move repeated MAXSLP definition from machine/vmparam.h to sys/vmmeter.h.kib2011-01-091-0/+1
| | | | | | | Update the outdated comments describing MAXSLP and the process selection algorithm for swap out. Comments wording and reviewed by: alc
* Make a thread's address available via the kern proc sysctl, just like theemaste2010-10-082-0/+4
| | | | | | | | process address. Add "tdaddr" keyword to ps(1) to display this thread address. Distilled from Sandvine's patch set by Mark Johnston.
* Correct sort order.emaste2010-09-221-1/+1
|
* Fix alignment for the 'flags' label, and make more room for 'tdev'.trasz2010-07-241-2/+2
| | | | MFC after: 1 month
* Add P_HASTHREADS flag description.trasz2010-07-241-1/+2
|
* Update the list of the process flags for P_WKILLED.kib2010-04-131-1/+2
| | | | MFC after: 4 weeks
* o) Add a keyword to displaying elapsed time in integer seconds, "etimes".jmallett2010-03-174-2/+25
| | | | | | o) Give slightly better (i.e. any) documentation of the format of "etime". Reviewed by: jilles
* Update the list of the process flags. Note that the lists of pendingkib2010-03-051-3/+15
| | | | | | | signals for process and its threads are distinct. Reviewed by: jilles MFC after: 2 weeks
OpenPOWER on IntegriCloud