zont
bc5f114a7a
- Bump date.
...
Submitted by: pluknet
Approved by: kib (mentor)
X-MFC-With: r240645
2012-09-18 13:24:14 +00:00
zont
4d6eea92c0
- Add 'dsiz' and 'ssiz' keywords to show data and stack size respectively.
...
Approved by: kib (mentor)
MFC after: 1 week
2012-09-18 12:25:14 +00:00
emaste
87db19685b
Avoid passing uninitialized stack to addelem() if called with an empty arg.
...
PR: bin/171174
2012-08-29 21:38:34 +00:00
jilles
7996e743fa
ps: Fix memory leak when showing start/lstart for swapped-out process.
...
Spotted by: scan-build (uqs)
2012-07-15 15:22:13 +00:00
kib
01c4156d22
Add 'cow' keyword to show per-process cow count.
...
Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week
2012-05-23 18:11:36 +00:00
joel
f1a6c7f032
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.
2012-03-29 16:02:40 +00:00
kib
9941d05119
Document P_ORPHAN.
...
MFC after: 3 days
2012-03-08 13:00:49 +00:00
ed
e193e26a6f
Remove unused variables.
...
Simply annotate the function parameters with __unused, instead of adding
the ve-variables. This makes the code build with GCC 4.7 and -Werror.
2012-01-17 22:17:10 +00:00
uqs
a57e937851
Spelling fixes for bin/
2012-01-07 16:10:23 +00:00
trociny
078e9e9d83
Remove yet another outdated note about procfs(5) being required.
...
Spotted by: arundel
2011-11-22 21:53:06 +00:00
trociny
c75c44db76
No need in procfs(5).
...
MFC after: 2 weeks
2011-11-22 21:14:46 +00:00
trasz
a1dd5d2d73
For processes with no controlling terminal, display "-" in the TTY column
...
instead of "?".
Submitted by: arundel
2011-10-30 15:21:27 +00:00
gjb
2dc0506382
Correct a typo that was introduced in 225912
...
Submitted by: Valentin Nechayev (netch % netch!kiev!ua), arundel
MFC after: 1 week
With-MFC: 225908
2011-10-02 16:05:19 +00:00
gjb
5f61f37453
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
2011-10-01 23:47:37 +00:00
gjb
38415e6d0d
Reorder default ps(1) output according to reality.
...
Submitted by: arundel (via docs@)
MFC after: 1 week
2011-10-01 20:56:58 +00:00
trasz
5240e157ba
Make ps(1) automatically size its column widths.
2011-09-29 06:31:42 +00:00
ed
2a84e78d2e
Get rid of major/minor number distinction.
...
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).
2011-09-28 18:53:36 +00:00
bz
1a8cc2bad9
Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.
...
Provide backward compatibility defines under BURN_BRIDGES.
Suggested by: jhb
Reviewed by: emaste
Sponsored by: Sandvine Incorporated
Approved by: re (kib)
2011-07-18 20:06:15 +00:00
pluknet
e6952ca6b1
Bump date after the previous commit.
2011-07-01 10:57:10 +00:00
pluknet
34887426b0
Update and sort the list of the available keywords.
2011-07-01 10:54:47 +00:00
trasz
0b41fa9638
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>
2011-06-14 16:50:16 +00:00
uqs
bfe0a2ea26
Fix some typos under bin/
...
Found by: codespell
2011-05-22 14:03:46 +00:00
pluknet
7c35eb4515
Spelling in P_HADTHREADS.
...
MFC after: 1 week
2011-05-20 14:32:28 +00:00
pluknet
acd3cea586
Fix the description of the "paddr" keyword. It shows a process
...
pointer just like a dublicating "uprocp".
MFC after: 1 week
2011-05-20 14:07:08 +00:00
trasz
3ba2f4e3f2
Document problems with -d/-w and the fact that -X is the default.
...
Suggested by: arundel@
Reviewed by: arundel@
2011-04-18 19:20:47 +00:00
trasz
205b535d3e
Get rid of DSIZ; instead just call the sizing function if provided.
2011-04-12 20:10:15 +00:00
trasz
e94d4d2ed6
Add proper width calculation for time fields (time, cputime and usertime).
...
This fixes the ugly overflow in "ps aux" output for "[idle]".
2011-03-24 20:15:42 +00:00
trasz
7a8bd43974
Make "LOGIN" and "CLASS" columns width scale properly instead of wasting space.
2011-03-24 17:20:24 +00:00
kib
425e556ac9
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
2011-03-17 11:25:32 +00:00
trasz
1618438630
Export login class information via kinfo and make it possible to view
...
it using "ps -o class".
2011-03-05 14:41:49 +00:00
kib
ca24f47263
Document P_FOLLOWFORK.
...
MFC after: 2 weeks
2011-01-25 11:04:16 +00:00
kib
4f8260e700
Move repeated MAXSLP definition from machine/vmparam.h to sys/vmmeter.h.
...
Update the outdated comments describing MAXSLP and the process
selection algorithm for swap out.
Comments wording and reviewed by: alc
2011-01-09 12:50:44 +00:00
emaste
a3f6608533
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.
2010-10-08 00:44:53 +00:00
emaste
0a89cbc56c
Correct sort order.
2010-09-22 19:26:41 +00:00
trasz
940c4d597c
Fix alignment for the 'flags' label, and make more room for 'tdev'.
...
MFC after: 1 month
2010-07-24 15:37:36 +00:00
trasz
fb4120ccfd
Add P_HASTHREADS flag description.
2010-07-24 15:24:12 +00:00
kib
a00ca9686b
Update the list of the process flags for P_WKILLED.
...
MFC after: 4 weeks
2010-04-13 08:54:53 +00:00
jmallett
d27802f97a
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
2010-03-17 22:57:58 +00:00
kib
9b575d6cfa
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
2010-03-05 13:13:35 +00:00
brucec
a955ef657c
Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows the -M option to be used without specifying -N.
...
PR: bin/138146
Approved by: rrs (mentor)
MFC after: 3 days
2010-02-08 21:23:48 +00:00
netchild
45887d4e28
Fix small resource leak (memory).
...
Reviewed by: gad
MFC after: 1 week
2009-11-17 07:29:35 +00:00
delphij
6f248c8fee
Increase width for %CPU, RSS and VSZ columns for now. Modern systems
...
tend to have larger memory, larger process, and more CPU.
2009-11-03 09:28:45 +00:00
brian
33ab52b1d1
Add the -d switch to the usage message.
...
Submitted by: Emil Mikulic - emil at dmr dot ath dot cx
Approved by: re (kib)
MFC after: 1 week
2009-07-23 10:20:12 +00:00
trasz
eabdd627e2
Add manual page links to advertise procstat(1) a little better.
...
Approved by: re (kib)
2009-07-09 16:40:00 +00:00
jilles
69cfa0ad1d
Fix elapsed (etime) field for swapped out processes in ps:
...
show '-' instead of time since the Epoch.
PR: bin/123069
Submitted by: Vladimir Kozbin
Approved by: ed (mentor)
MFC after: 3 weeks
2009-05-24 15:32:34 +00:00
brian
c690953dc5
Remove redundant whitespace
2009-05-18 01:45:52 +00:00
brian
04ab6b4b29
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
2009-05-17 04:00:43 +00:00
attilio
dfd6f02e2f
[1] When showing threads, the thread name just appears if the comm
...
label is choosen as last printout (ucomm suffers of this such bug
too). That bug is caused by the fact that the fixed size of
printout doesn't leave enough space for them to be printed out.
Implement ucomm and comm commands with a dynamic size lenght for
buffers.
[2] On AMD64 architecture pointers don't have enough chars space to
be shown (8 chars while they need 16). Fix them by providing
a variadic space so that it fits well on both 64 and 32 bits
architectures.
[3] Check a return value of malloc() that wasn't checked before.
PR: bin/128841, bin/128842
Reviewed by: jhb, emaste
Sponsored by: Sandvine Incorporated
2009-02-26 18:01:07 +00:00
emaste
915a3913e1
Fix whitespace.
2008-11-13 15:06:34 +00:00
kevlo
1f1d4ebf9a
Remove unnessasary cast
2008-07-18 14:55:22 +00:00