freebsd-skq/bin/ps
wpaul 9bde04a698 On FreeBSD/alpha, ps(1) does not correctly report process start times
and CPU runtime because it can't access the user area via /proc/<pid>/mem.
This is because the uarea is not mapped into the process address space
at USRSTACK on the alpha like it is on the x86.

Since I'm haven't been able to wrap my brain around the VM system enough
to be able to figure out how to achieve this mapping, and since it's
questionable that such an architectural change is correct, I implemented
a workaround to allow ps(1) to read the uarea from /dev/kmem using
kvm_read() instead of from the process address space via kvm_uread().
The kludge is hidden inside #ifdef __alpha__/#endif so as not to impact
the x86. (Note that top(1) probably uses this same gimmick since it works
on FreeBSD/alpha.)

Reviewed by: dfr
1999-04-01 14:45:18 +00:00
..
extern.h If no value is present for the login name set it to '-'. 1998-05-25 05:07:18 +00:00
fmt.c Fixed -Wall regression (broken in rev.1.12). Removed unused includes. 1998-12-07 10:25:48 +00:00
keyword.c Enable Linux threads support by default. 1999-01-26 02:38:12 +00:00
Makefile Add an option to building PS, so that the upages are explicitly paged in only 1997-12-05 07:33:40 +00:00
nlist.c Fixed breakage of %CPU and %MEM in the previous commit. sysctlbyname() 1998-09-10 18:06:28 +00:00
print.c Fix formatting of %CPU value on alpha. 1998-11-25 09:34:00 +00:00
ps.1 Fix errors that crept into the previous commit. 1998-06-04 07:02:59 +00:00
ps.c On FreeBSD/alpha, ps(1) does not correctly report process start times 1999-04-01 14:45:18 +00:00
ps.h Portability fixes when sizeof(int) != sizeof(long). 1998-09-14 08:32:20 +00:00