summaryrefslogtreecommitdiffstats
path: root/bin/ps
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Check for the PS_SINTR flag in the right field of struct kinfo_proctegge2001-06-161-1/+1
| | | | (ki_sflag).
* Correct a typo.dd2001-06-081-1/+1
| | | | Submitted by: Alexey V. Neyman <avn@any.ru>
* Mention the kern.ps_showallprocs sysctl.dd2001-06-021-0/+4
| | | | | PR: 24804 Submitted by: Mike Meyer <mwm@mired.org>
* Use PATH_MAX rather than MAXPATHLEN.imp2001-05-301-1/+1
|
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+1
|
* Depollute headers now that the VM headers DTRT.markm2001-05-033-3/+0
|
* Compensate for header dethreading.markm2001-05-013-0/+3
|
* Correct some markupbrian2001-04-121-2/+4
| | | | Submitted by: bde
* Introduce -osid and -otsidbrian2001-04-112-0/+8
| | | | Submitted by: dd
* Remove tsess for now.brian2001-04-071-2/+0
| | | | This (and sess) may come back shortly.
* Update documentation in line with what the code doesbrian2001-04-071-9/+1
| | | | | | PR: 25435 Submitted by: dd Forgotten by: mckusick
* The sess column went away last December with v1.26 of keyword.cbrian2001-04-071-1/+1
| | | | | | Remove it from ``jfmt''. Forgotten by: mckusick
* Small optimization: set use_ampm only when neededache2001-03-033-4/+6
|
* Use AM/PM time only when available in localeache2001-03-023-4/+9
|
* Fix style bug I introduced with rev 1.13 (rcsid after includes).obrien2001-02-281-5/+7
| | | | | | Along with CSRG id lossage in rev 1.11. Submitted by: bde
* Add rcsid.obrien2001-02-271-0/+6
|
* Do not coredump if no options are supplied. (ps -o,)jlemon2001-02-141-1/+1
| | | | | Submitted by: rgrimes Obtained from: NetBSD
* Catch up to new priority interface.jake2001-02-123-17/+18
|
* Use decimal point from localeache2001-02-111-1/+5
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* - Catch up to new proc flags.jhb2001-01-242-7/+8
|
* Restore the rss (-u) keyword that got deleted in my somewhat over-zealousmckusick2000-12-161-0/+1
| | | | | | cleanup effort. Submitted by: Mark Peek <mark@whistle.com>
* Prepare for mdoc(7)NG.ru2000-12-151-2/+3
|
* Change the proc information returned from the kernel so that itmckusick2000-12-125-169/+103
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* Document the mtxname keyword.jhb2000-11-301-2/+13
| | | | Reviewed by: sheldonh
* Introduce a 'mtxname' keyword that displays the current mutex that ajhb2000-11-293-0/+20
| | | | process is blocked on or '-'.
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Remove obsolete /dev/drum referencesjedgar2000-10-291-3/+2
| | | | Reviewed by: alex, asmodai, billf
* No need to work around SCCS variable expansion any more.kris2000-09-281-6/+2
|
* Support multiple (comma separated) names as arguments to -Ubrian2000-09-262-15/+73
| | | | PR: 11051
* Major update to the way synchronization is done in the kernel. Highlightsjasone2000-09-071-1/+9
| | | | | | | | | | | | | | | include: * Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The alpha port is still in transition and currently uses both.) * Per-CPU idle processes. * Interrupts are run in their own separate kernel threads and can be preempted (i386 only). Partially contributed by: BSDi (BSD/OS) Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh
* Fix the exit code for the case where nentries == 0; if a PID doesn't exist,will2000-07-081-1/+1
| | | | | | | | | ps(1) should not be returning a success code (0), it should return an error code (1). This was fixed on OpenBSD over 3 years ago. PR: 19069 Submitted by: Jim Sloan <odinn@atlantabiker.net> Reviewed by: rwatson
* I'm probably jumping the gun, but what the heck, this is -current.peter1999-11-171-2/+2
| | | | | | | | | | | | | | | 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.
* Use eproc.e_stats, not a series of crude hacks to fetch it from the u-area.peter1999-11-171-60/+19
| | | | Also, fix some indentation that got messed up somehow..
* Introduce commandline caching in the kernel.phk1999-11-161-1/+1
| | | | | | | | | | | 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.
* Typo (appropiate -> appropriate)kris1999-11-151-1/+1
| | | | Obtained from: OpenBSD (inspired by)
* $Id$ -> $FreeBSD$peter1999-08-278-8/+8
|
* Correct reference to the obsolete vadvise() to madvise() (with appropriatekris1999-06-301-5/+5
| | | | | | | | arguments) PR: 11586 Submitted by: David Gilbert <dgilbert@velocet.ca> Reviewed by: Doug Rabson
* Various spelling/formatting changes.kris1999-05-081-3/+3
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* This Implements the mumbled about "Jail" feature.phk1999-04-282-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/
* Update p_flags doc.peter1999-04-061-3/+1
|
* Look at p_lock instead of P_NOSWAP etc as an indicator of unswappability.peter1999-04-061-2/+4
| | | | | (While here, put a #ifndef pgtok around the macro that gets a redefinition warning)
* On FreeBSD/alpha, ps(1) does not correctly report process start timeswpaul1999-04-011-1/+40
| | | | | | | | | | | | | | | | | 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
* Enable Linux threads support by default.julian1999-01-261-8/+1
| | | | | | | | | 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>
* Re-enable the options in ps(1) that were disabled with the Linuxjulian1999-01-131-1/+6
| | | | | | threads support. Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Reviewed by: Luoqi Chen, Jordan Hubbardjulian1998-12-191-1/+3
| | | | | | | | | | | | 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.
* Fixed -Wall regression (broken in rev.1.12). Removed unused includes.bde1998-12-071-3/+3
|
* Fix formatting of %CPU value on alpha.dfr1998-11-251-3/+3
| | | | Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Portability fixes when sizeof(int) != sizeof(long).dfr1998-09-143-41/+47
|
OpenPOWER on IntegriCloud