History log of /freebsd-10.1-release/bin/ps/ps.1
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 270264 21-Aug-2014 kib

MFC r269656:
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.


# 267904 26-Jun-2014 pluknet

MFC r267196:

Add support for inspecting process flags set in p_flag2.


# 266279 17-May-2014 bdrewery

MFC r265229,r265239:

Add -J to filter by matching jail IDs and names.


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 254943 26-Aug-2013 will

Add the ability to display the default FIB number for a process to the
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


# 248342 15-Mar-2013 joel

Add a few examples.

Obtained from: OpenBSD


# 246486 07-Feb-2013 kib

Document P_PPTRACE.

MFC after: 2 weeks


# 240649 18-Sep-2012 zont

- Bump date.

Submitted by: pluknet
Approved by: kib (mentor)
X-MFC-With: r240645


# 240645 18-Sep-2012 zont

- Add 'dsiz' and 'ssiz' keywords to show data and stack size respectively.

Approved by: kib (mentor)
MFC after: 1 week


# 235851 23-May-2012 kib

Add 'cow' keyword to show per-process cow count.

Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week


# 233665 29-Mar-2012 joel

mandoc complains loudly when <TAB>s are misused in columnated lists. Fix
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.


# 232694 08-Mar-2012 kib

Document P_ORPHAN.

MFC after: 3 days


# 227846 22-Nov-2011 trociny

Remove yet another outdated note about procfs(5) being required.

Spotted by: arundel


# 227840 22-Nov-2011 trociny

No need in procfs(5).

MFC after: 2 weeks


# 226939 30-Oct-2011 trasz

For processes with no controlling terminal, display "-" in the TTY column
instead of "?".

Submitted by: arundel


# 225927 02-Oct-2011 gjb

Correct a typo that was introduced in 225912

Submitted by: Valentin Nechayev (netch % netch!kiev!ua), arundel
MFC after: 1 week
With-MFC: 225908


# 225912 01-Oct-2011 gjb

Tweaks to ps(1):
- 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


# 225908 01-Oct-2011 gjb

Reorder default ps(1) output according to reality.

Submitted by: arundel (via docs@)
MFC after: 1 week


# 223709 01-Jul-2011 pluknet

Bump date after the previous commit.


# 223708 01-Jul-2011 pluknet

Update and sort the list of the available keywords.


# 223086 14-Jun-2011 trasz

Add "gid" and "group" keywords to display the effective group ID
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>


# 222130 20-May-2011 pluknet

Spelling in P_HADTHREADS.

MFC after: 1 week


# 222127 20-May-2011 pluknet

Fix the description of the "paddr" keyword. It shows a process
pointer just like a dublicating "uprocp".

MFC after: 1 week


# 220799 18-Apr-2011 trasz

Document problems with -d/-w and the fact that -X is the default.

Suggested by: arundel@
Reviewed by: arundel@


# 219713 17-Mar-2011 kib

Implement the usertime and systime keywords for ps, printing the
corresponding times reported by getrusage().

Submitted by: Dan Nelson <dnelson allantgroup com>
MFC after: 1 week


# 219307 05-Mar-2011 trasz

Export login class information via kinfo and make it possible to view
it using "ps -o class".


# 217821 25-Jan-2011 kib

Document P_FOLLOWFORK.

MFC after: 2 weeks


# 213536 07-Oct-2010 emaste

Make a thread's address available via the kern proc sysctl, just like the
process address.

Add "tdaddr" keyword to ps(1) to display this thread address.

Distilled from Sandvine's patch set by Mark Johnston.


# 210447 24-Jul-2010 trasz

Add P_HASTHREADS flag description.


# 206548 13-Apr-2010 kib

Update the list of the process flags for P_WKILLED.

MFC after: 4 weeks


# 205271 17-Mar-2010 jmallett

o) Add a keyword to displaying elapsed time in integer seconds, "etimes".
o) Give slightly better (i.e. any) documentation of the format of "etime".

Reviewed by: jilles


# 204755 05-Mar-2010 kib

Update the list of the process flags. Note that the lists of pending
signals for process and its threads are distinct.

Reviewed by: jilles
MFC after: 2 weeks


# 195502 09-Jul-2009 trasz

Add manual page links to advertise procstat(1) a little better.

Approved by: re (kib)


# 192239 17-May-2009 brian

Add a -d option to ps to display descendant info with the output.
This is similar to linux's -H (or -f) switch.

MFC after: 3 weeks


# 177090 12-Mar-2008 jeff

- P_SA has been removed.


# 162379 17-Sep-2006 ru

Markup fixes.


# 161491 21-Aug-2006 yar

For the sake of clarity, explicitly tell that comma and space
characters can be included in a custom column title string --
that's why it may appear at the end of a keyword list argument
only.


# 161442 18-Aug-2006 yar

Document a detail in the present syntax of "ps -o foo=bar". Now
the header title string "bar" extends to the end of the argument
even if it contains commas or spaces, unlike in RELENG_4 or earlier.
The modern syntax agrees with SUSv3.

MFC after: 3 days


# 145675 29-Apr-2005 maxim

o Typo: s/teminal/terminal/.

Submitted by: Michal Varga


# 143872 20-Mar-2005 pjd

Add and document the 'jid' keyword for the '-o' option.

Reviewed by: gad
MFC after: 3 days


# 141917 14-Feb-2005 delphij

Several improvements to ps.1:
- Document the fact that empty heading text suppresses the
heading line (e.g. 'ps -o pid='), as this is very useful
in scripts.
- Describe logname keyword more completely.
- Describe the printing of arguments more completely.
- Put lockname in the correct alphabetical order in the list
of all keywords.
- Correct sentence in standards section.

Submitted by: Jilles Tjoelker <jilles at stack nl>
PR: docs/73618
MFC After: 1 week


# 141578 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


# 139171 22-Dec-2004 rwatson

Remove single line containing the word "KLD" ommitted in ps.1:1.80.

Pointed out by: ru (some time ago)


# 138191 29-Nov-2004 rwatson

Point at the mac(4) man page when describing the -Z option.
Remove reference to /dev/lomac, which is no longer used by mac_lomac(4).

MFC after: 3 days


# 130894 21-Jun-2004 gad

When displaying the "COMMAND" field for system-processes and/or kernel
threads, put the command name in square brackets instead of parenthesis.
This matches NetBSD, and also seems to be what linux does. The sentence
which is added to the man page is taken straight from NetBSD.

PR: bin/65803
Submitted by: Cyrille Lefevre
Obtained from: NetBSD


# 129714 25-May-2004 gad

Add pgrep(1) and pkill(1) to the cross-reference section of ps(1).


# 129635 23-May-2004 gad

Add the 'sid' info to the output of `ps -j', to make up for the 'sess'
(session-pointer) info which was dropped from `ps' earlier in 5.x.

PR: bin/59423
Submitted by: Jilles Tjoelker


# 129298 16-May-2004 ru

Assorted markup fixes.


# 127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


# 127710 01-Apr-2004 gad

Add spaces after flag names on .Fl macros.

Noticed by: ru
MFC after: 4 days


# 127693 31-Mar-2004 gad

Describe the sorting options in better and more complete detail.
Also improve the description of `-L' a little.

MFC after: 4 days


# 127500 27-Mar-2004 gad

Update the date on the man page, since this the previous change added
a few new options.


# 127499 27-Mar-2004 gad

Support more POSIX/SUSv3 options:

- Change `-p' to allow a list of process IDs, and `-t' to allow a list
of terminal names, instead of only a single value for each.
- Add the `-A' option of SUSv3, which is exactly the same as `-ax'.
- Add the `-G gidlist' (group id).
- Allow any of these "selector options" to be specified multiple times,
and have `ps' keep adding to a given list -- instead of replacing the
previously-specified values.
- Fix interactions between selector-options, so that: "If any are
specified, ... ps shall select the processes represented by the
inclusive OR of all the selection-criteria options." (from SUSv3)
- Add a `-X' option, which is the reverse of the `-x' option.

- various minor improvements in parsing and error handling.

This does not get us to match POSIX/SUSv3, but it gets us closer. The
`-g pgidlist', `-R ruserlist' and `-s sidlist' options mentioned in
freebsd-standards are still under debate, so they skipped for now.
It should be true that this introduces no user-visible incompatible
changes, except to support "new stuff" that was not supported before.


# 127445 26-Mar-2004 ru

Avoid the manpage layering violation and low-level implementation
details of libkvm, and just tell what the getbootfile(3) function
will return, by using the text from netstat(1) and dmesg(8).


# 127440 26-Mar-2004 ru

- Remove references to /dev/kmem -- ps(1) utilizes the
sysctl(3) interface in kvm(3).
- Document the correct default when no -N is specified.
- Remove stale reference to /var/db/kvm_kernel.db.
- Remove stale reference to /var/run/dev.db.


# 127270 21-Mar-2004 tjr

Document incorrect handling of multibyte characters.


# 127149 17-Mar-2004 gad

Improvements to 'ps -p <x>'. If <x> is a process id that does not exist, then
just print the header (if any) and exit, thus matching the behavior on -stable
and other OS's.

Also adds support for <x> being a comma-separated list of processes, and does
a much better checking for invalid-values of <x>, such as 'ps -p someword'.

Reviewed by: mentioned on freebsd-current
MFC after: 10 days


# 124792 21-Jan-2004 cperciva

Bring ps.1 up to date with changes in the past seven years:
* Remove mention of '>', 'A', and 'S' states
* Mention 'W' state.
* List 'J' state in the correct location.
* Sync with flags in sys/proc.h

Approved by: rwatson (mentor)
MFC after: 7 days


# 119893 08-Sep-2003 ru

mdoc(7): Use the new feature of the .In macro.


# 118481 05-Aug-2003 brueffer

Clarify that the 'state' information consists of characters, not
only letters (e.g. IWs+)

PR: 55221
Submitted by: Rich Morin <rdm@cfcl.com>
MFC after: 3 days


# 116265 12-Jun-2003 scottl

Add the -H option to ps(1) to display all kernel visible threads in each
process. The default behavior of showing only the process is retained as
the default.


# 116019 08-Jun-2003 charnier

add section name to .Xr


# 114318 30-Apr-2003 schweikh

Fix references to non-existing or obsoleted man pages.

PR: docs/51480 (only a small part)
Submitted by: Diomidis D. Spinellis <dds@aueb.gr>


# 108221 23-Dec-2002 ru

Fixed the abuses of .Ql visible on stderr in troff mode.

PR: docs/37176


# 105831 23-Oct-2002 rwatson

Use the MAC interface to list process MAC labels rather than using
the LOMAC-specific interface (which is being deprecated). The
revised LOMAC using the MAC framework will export levels listable
using this mechanism.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories


# 104388 02-Oct-2002 jhb

Catch up to SMTX -> SLOCK changes.


# 102230 21-Aug-2002 trhodes

s/filesystem/file system/ as discussed on -developers


# 101572 09-Aug-2002 ru

mdoc(7) police: whitespace nits.


# 98106 10-Jun-2002 jmallett

ps(1) appeared in v4

Submitted by: grog


# 98080 10-Jun-2002 jmallett

Note early appearence of some commands. These actually appeared in PWB, but
it seems we don't have a macro for that yet, so list them in the first UNIX
release since then that we have a .At for: v7.


# 98050 08-Jun-2002 jmallett

Allow whitespace to act as a delimiter in the keywords list given to the -o,
again, but also allow it in the user-specified header, too. This is far more
backwards compatible and SUSv3-happy than allowing only comma to seperate the
keywords list.

Submitted by: tjr


# 98029 08-Jun-2002 jmallett

Don't say that the list of formats can be space delimited, it no longer can be.

Mention that more than one -o will concatenate formats.

Submitted by: Jun Kuriyama <kuriyama@imgsrc.co.jp>


# 97965 06-Jun-2002 jmallett

Implement a SUSv3-ignorant but "time"-similar format for "etime", elapsed
run time (NOT cpu time). cputime() and elapsed() both need to honour SUSv3
now.


# 97961 06-Jun-2002 jmallett

Support the SUSv3 `rgroup' format.

Clean up some local style bogons.


# 97958 06-Jun-2002 jmallett

SUSv3 conform on the "comm" and "args" formats, and make correct the "command"
format, since it's BSDlike, and "comm" is actually different.


# 97945 06-Jun-2002 jmallett

Refer to the command format by its SUSv3 name (comm), and list command as an
alias.


# 97804 04-Jun-2002 tjr

Respect setting of the COLUMNS environment variable (SUSv3)


# 96729 16-May-2002 joe

The sysctl has changed from 'kern.ps_showallprocs' to
'security.bsd.see_other_uids'.


# 96702 15-May-2002 trhodes

Consistancy check s/file system/filesystem/

Reviewed by: brian


# 96247 09-May-2002 joe

Replace /kernel with /boot/kernel/kernel.

PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>


# 94869 16-Apr-2002 charnier

Use `The .Nm utility'


# 91028 21-Feb-2002 dillon

Revert wchan functionality. Add 'mwchan' to supply new duel mutex/msleep
functionality and make it the default.

With additional improvements by: Mark Peek <mp@FreeBSD.org>


# 90738 16-Feb-2002 des

Document the 'M' state.


# 89909 28-Jan-2002 ru

GC the -W option. kvm(3) doesn't read swap for almost 10 years.

PR: docs/34134
Reviewed by: bde, peter
MFC after: 1 month


# 87353 04-Dec-2001 ru

mdoc(7) police: s/LKM/KLD/, sort xrefs.


# 86922 26-Nov-2001 green

Add LOMAC options (the "Z" flag in both cases) to display extra information
in ls(1) and ps(1).

Sponsored by: DARPA, NAI Labs


# 79526 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 77896 08-Jun-2001 dd

Correct a typo.

Submitted by: Alexey V. Neyman <avn@any.ru>


# 77609 02-Jun-2001 dd

Mention the kern.ps_showallprocs sysctl.

PR: 24804
Submitted by: Mike Meyer <mwm@mired.org>


# 75449 12-Apr-2001 brian

Correct some markup

Submitted by: bde


# 75435 11-Apr-2001 brian

Introduce -osid and -otsid

Submitted by: dd


# 75287 07-Apr-2001 brian

Remove tsess for now.

This (and sess) may come back shortly.


# 75285 07-Apr-2001 brian

Update documentation in line with what the code does

PR: 25435
Submitted by: dd
Forgotten by: mckusick


# 71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


# 70056 15-Dec-2000 ru

Prepare for mdoc(7)NG.


# 69404 30-Nov-2000 jhb

Document the mtxname keyword.

Reviewed by: sheldonh


# 68935 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


# 67870 29-Oct-2000 jedgar

Remove obsolete /dev/drum references

Reviewed by: alex, asmodai, billf


# 66377 25-Sep-2000 brian

Support multiple (comma separated) names as arguments to -U

PR: 11051


# 50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48366 30-Jun-1999 kris

Correct reference to the obsolete vadvise() to madvise() (with appropriate
arguments)

PR: 11586
Submitted by: David Gilbert <dgilbert@velocet.ca>
Reviewed by: Doug Rabson


# 46684 08-May-1999 kris

Various spelling/formatting changes.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


# 46155 28-Apr-1999 phk

This Implements the mumbled about "Jail" feature.

This is a seriously beefed up chroot kind of thing. The process
is jailed along the same lines as a chroot does it, but with
additional tough restrictions imposed on what the superuser can do.

For all I know, it is safe to hand over the root bit inside a
prison to the customer living in that prison, this is what
it was developed for in fact: "real virtual servers".

Each prison has an ip number associated with it, which all IP
communications will be coerced to use and each prison has its own
hostname.

Needless to say, you need more RAM this way, but the advantage is
that each customer can run their own particular version of apache
and not stomp on the toes of their neighbors.

It generally does what one would expect, but setting up a jail
still takes a little knowledge.

A few notes:

I have no scripts for setting up a jail, don't ask me for them.

The IP number should be an alias on one of the interfaces.

mount a /proc in each jail, it will make ps more useable.

/proc/<pid>/status tells the hostname of the prison for
jailed processes.

Quotas are only sensible if you have a mountpoint per prison.

There are no privisions for stopping resource-hogging.

Some "#ifdef INET" and similar may be missing (send patches!)

If somebody wants to take it from here and develop it into
more of a "virtual machine" they should be most welcome!

Tools, comments, patches & documentation most welcome.

Have fun...

Sponsored by: http://www.rndassociates.com/
Run for almost a year by: http://www.servetheweb.com/


# 45367 06-Apr-1999 peter

Update p_flags doc.


# 36635 04-Jun-1998 jkoshy

Fix errors that crept into the previous commit.


# 36631 04-Jun-1998 jkoshy

1. `ps' output now shows 3 characters in the `TT' field, not 2, after
rev 1.6 of "ps.c".
2. Reword description of `-f' option.

PR: 5340
Submitted by: Jorge Goncalves <j@bug.fe.up.pt>


# 36049 15-May-1998 charnier

Correct use of .Nm. Add rcsid.


# 33592 18-Feb-1998 dima

Add 'f' flag to the optstring.


# 31553 05-Dec-1997 dyson

Document the new -f flag.
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>


# 28433 19-Aug-1997 jlemon

Document correct option in manual page.

PR: 3769
Submitted by: johnp@lodgenet.com


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 19068 21-Oct-1996 peter

Implement a -c option to ps to display the short command name instead of
the full argument vector.

I've bumped into a few things that expected this switch to be present,
the most recent was the snmp package in ports. I'm not 100% sure of the
origins of this, but Linux has it, so does the "BSD-compatable" version
of ps on our SVR4 systems (so I assume SunOS has it too).


# 16949 03-Jul-1996 mpp

The default swap device is /dev/drum, not /dev/swap
as ps.1 states.

Submitted by: Zahemszhky Gabor <zgabor@code.hu>


# 15319 19-Apr-1996 smpatel

Fix up the badly out of date struct proc's p_flags.
Flags aren't printed in hexadecimal, as documented.


# 15073 06-Apr-1996 mpp

Correct some cross references and some path names.


# 13851 02-Feb-1996 mpp

Fix some incorrect locations in the FILES sections of some man pages.


# 13117 30-Dec-1995 joerg

Small man page tweaks:

. mention the need for procfs
. make it clear that default sorting is first by ctty, then by PID

Submitted by: schweikh@ito.uni-stuttgart.de (Jens Schweikhardt)


# 13020 26-Dec-1995 peter

Implement a new option to ps.. `-U username'. This allows you to
list the processes belonging to a particular user without having to use
`-u' and grepping for the username. Basically you can now get a short
`ps -x' like list (with more space for the command) for other users.


# 3044 24-Sep-1994 dg

Added $Id$


# 2446 01-Sep-1994 dg

Added rtprio option/field.

Submitted by: Henrik Vestergaard Draboel


# 1856 05-Aug-1994 dg

Converted 'vmunix' to 'kernel'.


# 1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.


# 1556 26-May-1994 rgrimes

BSD 4.4 Lite bin Sources