| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Use /dev/null for opening the kvm library, we don't need access to /dev/mem
anymore.
ps can now run without the setgid(kmem) bit. If it does it will not be
able to show argv/envp for another uid's processes unless you are root.
|
| |
|
|
|
|
| |
don't assume that time_t is long".
|
| |
|
|
|
|
|
| |
PR: 1791 (partial)
Reviewed by: Bruce Evans <bde@freebsd.org>, Tor Egge <tegge@freebsd.org>
|
| |
|
|
|
|
|
|
|
|
| |
rev 1.6 of "ps.c".
2. Reword description of `-f' option.
PR: 5340
Submitted by: Jorge Goncalves <j@bug.fe.up.pt>
|
|
|
|
| |
excessive 64-bit arithmetic, and excessive changes).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clean up (or if antipodic: down) some of the msgbuf stuff.
Use an inline function rather than a macro for timecounter delta.
Maintain process "on-cpu" time as 64 bits of microseconds to avoid
needless second rollover overhead.
Avoid calling microuptime the second time in mi_switch() if we do
not pass through _idle in cpu_switch()
This should reduce our context-switch overhead a bit, in particular
on pre-P5 and SMP systems.
WARNING: Programs which muck about with struct proc in userland
will have to be fixed.
Reviewed, but found imperfect by: bde
|
|
|
|
|
|
|
| |
Also pretty-up the display of 'ps -Ortprio'.
PR: 4947
Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for users who are root, or in group wheel. This is useful on large timesharing
systems where a PS command can cause the system to grind to a halt. The
ability to get the information isn't diminished for those who really need the
additional detail (administrators.) Normal users won't see any difference unless
the processes are swapped out. The "really get it mode" is invoked by the
use of an additional flag in the command string "-f". New/old behavior is
selectable with a compile option.
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>
|
|
|
|
|
| |
PR: 3769
Submitted by: johnp@lodgenet.com
|
|
|
|
|
|
| |
to the source code directory.
Submitted by: bde
|
|
|
|
| |
compile again.
|
| |
|
| |
|
|
|
|
|
| |
PR: bin/4253
Submitted by: Jesse Rosenstock <jmr@ugcs.caltech.edu>
|
|
|
|
|
| |
PR: 4206
Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
|
|
|
|
|
|
|
| |
VM structure (eg: credentials etc) and it's highly unlikely we'll ever
get to see the "tainted" BSD<=4.3 VM code in public use. Although it
indicated the way some things used to be done, it obfuscates things too
much.
|
| |
|
| |
|
|
|
|
|
|
|
| |
appears, not the longest _maximum_ username (this should probably also go
into 2.2, for the day when we bump up the username length there too).
Submitted-By: Terry Lambert <terry@lambert.org>
|
|
|
|
|
| |
the last field on the line. "ps -axlc" was needlessly wrapping
around on 80-character windows.
|
|
|
|
| |
posix standard on the topic.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
| |
as ps.1 states.
Submitted by: Zahemszhky Gabor <zgabor@code.hu>
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
| |
vm_rssize (in pages, not bytes), then dividing (bogusly) by the page size,
then using that as a fraction of the total pages.
|
| |
|
| |
|
|
|
|
| |
Flags aren't printed in hexadecimal, as documented.
|
| |
|
| |
|
|
|
|
|
|
| |
passed to kvm_open. Closes PR# 476.
Submitted by: Jeffrey Hsu <hsu@freebsd.org>
|
| |
|
|
|
|
|
|
|
| |
. 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)
|
|
|
|
|
|
| |
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.
|