| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
parameters by compiling `ps' with -DPS_BACKWARD_COMPATIBILITY=0, instead
of requiring them to patch ps.c. The default behavior has not changed.
Notes:
svn path=/stable/4/; revision=130381
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the same as `ps -tpt', instead of being changed into `ps -tpT'. Also adjust
it so `ps t p0' is treated like `ps -t p0', instead of making it `ps -T p0'.
This includes the rewrite of the kludge-option processing, but it does NOT
remove the long-undocumented BACKWARD_COMPATIBILITY compile-time option.
If you delete the '#define BACKWARD_COMPATIBILITY' line, you'll get the
newer handling for "extra arguments", which is to treat them as requests
for processes.
Also brings in a number of style(9) improvements.
[* = 1.90 & 1.92 -> 1.98 ps.c]
PR: bin/52489 (for `ps tpt' and `ps t p0')
Submitted by: Jilles Tjoelker ( " )
Notes:
svn path=/stable/4/; revision=130220
|
| |
|
|
|
|
|
|
|
| |
split two 'fmt' strings so they're easier to read on 80-char windows.
Approved by: re(scottl)
Notes:
svn path=/stable/4/; revision=127847
|
| |
|
|
|
|
|
| |
Approved by: re(scottl)
Notes:
svn path=/stable/4/; revision=127846
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
when `ps' is compiled with LAZY_PS, so that there is only one PS_ARGS
string to modify when changing the option-list. Also get `-f' to show
up in the usage() statement when compiled with LAZY_PS. Also move the
'f' case in the select statement, so it in alphabetical order.
[* = 1.68 1.69 & 1.86 ps.c]
Approved by: re(scottl)
Notes:
svn path=/stable/4/; revision=127845
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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 should result in no user-visible changes, except for adding the
new features. The man page is updated to describe the new features,
and to describe the sorting options in better and more complete detail.
[* = 1.67 1.72 1.76->1.79 1.84 & 1.85 ps.c, 1.71->1.74 ps.1]
Approved by: re(scottl)
Notes:
svn path=/stable/4/; revision=127842
|
| |
|
|
|
|
|
|
| |
returns non-zero if no processes were matched. Also sorts the list
of 'int's in main, as long as I had to add another one...
Notes:
svn path=/stable/4/; revision=127490
|
| |
|
|
|
|
|
|
|
|
| |
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'.
[* = 1.65 ps.c, 1.67 ps.1]
Notes:
svn path=/stable/4/; revision=127489
|
| |
|
|
|
|
|
| |
MFC some upcoming updates. This should cause no user-visible changes.
Notes:
svn path=/stable/4/; revision=127414
|
| |
|
|
|
|
|
|
|
|
|
| |
mainly to greatly reduce the code-diffs in ps.c (but that dragged
in some similar changes to the other files). This should result
in no user-visible changes. This is done to make it easier to MFC
some user-visible changes that are coming up, but those MFC's will
be done at a later date.
Notes:
svn path=/stable/4/; revision=127334
|
| |
|
|
|
|
|
|
|
|
|
| |
in the past seven years.
PR: bin/34955
Submitted by: Tim Robbins
Approved by: rwatson (mentor)
Notes:
svn path=/stable/4/; revision=125214
|
| |
|
|
|
|
|
|
| |
Clarify that the 'state' information consists of characters, not
only letters (e.g. IWs+)
Notes:
svn path=/stable/4/; revision=118692
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=107409
|
| |
|
|
|
|
|
| |
are given.
Notes:
svn path=/stable/4/; revision=104822
|
| |
|
|
|
|
|
| |
an option taking an argument (rev.1.55).
Notes:
svn path=/stable/4/; revision=99402
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=98517
|
| |
|
|
|
|
|
| |
1.15 +8 -4 src/bin/ps/fmt.c
Notes:
svn path=/stable/4/; revision=92385
|
| |
|
|
|
|
|
|
|
|
| |
rev 1.38, no need to work around SCCS variable expansion any more
rev 1.42, use decimal point from locale
rev 1.44, use AM/PM time only when available in locale
rev 1.45, set use_ampm only when needed
Notes:
svn path=/stable/4/; revision=92158
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=90062
|
| |
|
|
|
|
|
|
|
| |
actually part of an option argument.
PR: 13870
Notes:
svn path=/stable/4/; revision=83960
|
| |
|
|
|
|
|
| |
much use (the kernel addresses are too large to mask).
Notes:
svn path=/stable/4/; revision=83754
|
| |
|
|
|
|
|
| |
Approved by: re
Notes:
svn path=/stable/4/; revision=81764
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=80815
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=80814
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=77897
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=77891
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=73776
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=73333
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=72490
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=71432
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=69762
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=66092
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=62804
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Turn off setgid-kmem for /bin/ps, it's now quite functional without it.
ps no longer needs /dev/*mem or /proc. (It will still use some /proc
files if they are available for -e, but it's not required, so it'll
happily run in a jail or chroot).
The proc stats are now part of eproc (obtained via sysctl) and no longer
needs to beat up the u-page reading code and the problems with that.
This also has the side effect of disabling 'ps -e' for normal users
*EXCEPT* when looking at their own processes. ie: they can see
environments in processes with their uid, enforced by the ownership of
/proc/*/mem. Root can still see them all, as it can open all /proc/*/mem.
Notes:
svn path=/head/; revision=53278
|
| |
|
|
|
|
|
| |
Also, fix some indentation that got messed up somehow..
Notes:
svn path=/head/; revision=53276
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes some nasty procfs problems for SMP, makes ps(1) run much faster,
and makes ps(1) even less dependent on /proc which will aid chroot and
jails alike.
To disable this facility and revert to previous behaviour:
sysctl -w kern.ps_arg_cache_limit=0
For full details see the current@FreeBSD.org mail-archives.
Notes:
svn path=/head/; revision=53239
|
| |
|
|
|
|
|
| |
Obtained from: OpenBSD (inspired by)
Notes:
svn path=/head/; revision=53170
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50471
|
| |
|
|
|
|
|
|
|
|
|
| |
arguments)
PR: 11586
Submitted by: David Gilbert <dgilbert@velocet.ca>
Reviewed by: Doug Rabson
Notes:
svn path=/head/; revision=48366
|
| |
|
|
|
|
|
| |
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Notes:
svn path=/head/; revision=46684
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/
Notes:
svn path=/head/; revision=46155
|
| |
|
|
| |
Notes:
svn path=/head/; revision=45367
|
| |
|
|
|
|
|
|
| |
(While here, put a #ifndef pgtok around the macro that gets a redefinition
warning)
Notes:
svn path=/head/; revision=45366
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=45227
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This takes the conditionals out of the code that has been tested by
various people for a while.
ps and friends (libkvm) will need a recompile as some proc structure
changes are made.
Submitted by: "Richard Seaman, Jr." <dick@tar.com>
Notes:
svn path=/head/; revision=43208
|
| |
|
|
|
|
|
|
|
| |
threads support.
Submitted by: "Richard Seaman, Jr." <dick@tar.com>
Notes:
svn path=/head/; revision=42612
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Submitted by: "Richard Seaman, Jr." <lists@tar.com>
Obtained from: linux :-)
Code to allow Linux Threads to run under FreeBSD.
By default not enabled
This code is dependent on the conditional
COMPAT_LINUX_THREADS (suggested by Garret)
This is not yet a 'real' option but will be within some number of hours.
Notes:
svn path=/head/; revision=41931
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41580
|
| |
|
|
|
|
|
| |
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Notes:
svn path=/head/; revision=41324
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39160
|