FEATURE_PS_LONG: A new 'l' option to ps
Flemming Madsen
busybox at themadsens.dk
Mon Sep 26 19:11:54 UTC 2011
FEATURE_PS_LONG: A new 'l' option to ps:
Signed-off-by: Flemming Madsen <busybox at themadsens.dk>
---
S UID PID PPID VSZ RSS STIME TTY TIME CMD
S 0 1 0 3036 1860 08:21 ? 00:00:00 /sbin/init
S 0 2 0 0 0 08:21 ? 00:00:00 [kthreadd]
S 0 3 2 0 0 08:21 ? 00:00:01 [ksoftirqd/0]
...
S 0 988 1 5652 2260 08:21 ? 00:00:00 /usr/sbin/sshd -D
R 1001 30299 3114 2452 656 10:28 pts/3 00:00:00
./busybox-1.19.2/busybox ps l
An adapted version of 'ps efl':
We don't show fields C, PRI, NI, ADDR, WCHAN
We show VSZ and RSS instead of SZ
---------------------------------------------------------
Denys:
Thanks for the revised patch. Two comments:
- I still think STIME has a place here. After all your patch still
computes it. It just doesn't display it ;-) This is the only missing
field from 'ps -efl'
- The display of TTY was inconsistent with the standard: major==0
means no tty (display a ?)
I will attach the patch against both 1.19.2 and current git HEAD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ps.git-8d9ac30572818bbe78ef08d6580308e013972df3.patch
Type: text/x-patch
Size: 1492 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110926/b730be8e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-ps-long-output.patch
Type: text/x-patch
Size: 6991 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110926/b730be8e/attachment-0001.bin>
More information about the busybox
mailing list