| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
kthread_add() takes the same parameters as the old kthread_create()
plus a pointer to a process structure, and adds a kernel thread
to that process.
kproc_kthread_add() takes the parameters for kthread_add,
plus a process name and a pointer to a pointer to a process instead of just
a pointer, and if the proc * is NULL, it creates the process to the
specifications required, before adding the thread to it.
All other old kthread_xxx() calls return, but act on (struct thread *)
instead of (struct proc *). One reason to change the name is so that
any old kernel modules that are lying around and expect kthread_create()
to make a process will not just accidentally link.
fix top to show kernel threads by their thread name in -SH mode
add a tdnam formatting option to ps to show thread names.
make all idle threads actual kthreads and put them into their own idled process.
make all interrupt threads kthreads and put them in an interd process
(mainly for aesthetic and accounting reasons)
rename proc 0 to be 'kernel' and it's swapper thread is now 'swapper'
man page fixes to follow.
|
|
|
|
|
|
|
|
|
|
|
| |
all column-headers to print in lowercase by default. I was in too
much of a rush in committing 1.75, and didn't notice that the case
had changed. This time I did considerably more testing, and used
'diff' instead of just quickly eyeballing the results...
Apologies. I expect this means the dunce cap is mine for awhile.
If this doesn't work, I'll just drop back to 1.72 and hide under
my desk for awhile.
|
|
|
|
|
|
|
|
| |
the user specifies a keyword which is an alias to some other keyword.
E.g.: stat (for state) or pcpu (for %cpu)..
Submitted by: Kostik Belousov
MFC plans: "soon"
|
|
|
|
|
|
| |
by pjd.
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
| |
output-format keyword, and the keyword they picked is an alias to
some other keyword. E.g.: ps -o stat=Zustand $$
('stat' is defined as an alias for 'state')
PR: bin/57833
MFC after: 3 weeks
|
|
|
|
|
| |
Reviewed by: gad
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to exceed 10 megabytes in size (especially in X), bump the max
column width from 4 bytes to 5. This will make the ps auxw output
uniform again when a process's rss exceeds 10 megs.
It should be noted that when 5 digits becomes to small, other
solutions should be explored such as displaying them in megabytes
or having ps automatically re-size column widths.
Discussed with: gad
MFC after: 1 week
|
|
|
|
|
|
| |
using it's own version of the same basic algorithm.
Submitted by: part by Cyrille Lefevre, part of it done by me
|
|
|
|
|
|
| |
is scaled in the same way that "pri" (scheduling priority) is scaled.
Submitted by: Cyrille Lefevre
|
|
|
|
|
|
|
|
| |
emulation environment the process is in. "emul" as a keyword is picked
up from OpenBSD.
PR: bin/65803
Submitted by: Cyrille Lefevre
|
|
|
|
|
|
|
|
|
|
| |
and number-of-threads tied to a process. Result can be seen by typing,
e.g.: ps -HO lwp,nlwp
These new options are not documented yet. More options will be coming,
and I will update the man page after I get farther along.
PR: bin/65803 (though adjusted to fit our present source)
Submitted by: Cyrille Lefevre
|
|
|
|
| |
OK'ed by: imp, core
|
|
|
|
|
|
|
| |
Support "uprocp" exactly like "paddr" with the former having been
documented in the manual but not implemented.
PR: 42484
|
|
|
|
|
| |
not implemented. This is just handy if you want to ddb the address
some process is waiting on.
|
|
|
|
|
|
|
| |
This is what the manual page says ps should do, and what OpenBSD and NetBSD do.
Based on a patch from Ken Stailey.
PR: 27433, 46232
|
|
|
|
|
|
| |
fact that in this case order matters.
Submitted by: Peter Edwards <pmedwards@eircom.net>
|
|
|
|
|
|
| |
Solaris man page is the POSIX way.
Reviewed by: jmallett
|
|
|
|
|
| |
case to do the right thing and affect exactly one column. This is consistent
with GNU ps(1) in BSD mode, and POLA.
|
|
|
|
|
|
|
|
| |
one that is already there. This is consistent with GNU ps(1)'s BSD mode, and
POLA.
Reported by: Andy Farkas <andyf@speednet.com.au>
Tested by: Andy Farkas <andyf@speednet.com.au>
|
|
|
|
|
|
|
|
|
|
| |
the LOMAC-specific interface (which is being deprecated). The
revised LOMAC using the MAC framework will export levels listable
using this mechanism.
Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
|
| |
|
|
|
|
|
|
|
| |
tells people to type kill -l, when no valid ones are specified.
Sponsored by: Bright Path Solutions
MFC after: 4 days
|
|
|
|
|
| |
Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
MFC after: 2 weeks
|
|
|
|
|
|
| |
size (which is mostly undefined anyway).
Submitted by: bde
|
|
|
|
|
| |
of a better name, except PINT, but I decided to go with assuming LONG to
be safe, rather than assuming INT.
|
|
|
|
|
|
|
|
| |
ps(1) formatting, using pgtok() to get the value in K, rather than printing
it in pages. This is consistent with behaviour before keyword.c:1.26 (et al)
which exists in STABLE today, and which uses the same metric as VSZ.
Submitted by: bde
|
| |
|
|
|
|
| |
(-)remove the inclusions of <utmp.h>.
|
| |
|
|
|
|
|
|
|
|
| |
again, but also allow it in the user-specified header, too. This is far more
backwards compatible and SUSv3-happy than allowing only comma to seperate the
keywords list.
Submitted by: tjr
|
|
|
|
|
| |
run time (NOT cpu time). cputime() and elapsed() both need to honour SUSv3
now.
|
|
|
|
| |
Clean up some local style bogons.
|
|
|
|
| |
format, since it's BSDlike, and "comm" is actually different.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
override, seperate by comma (',') only, rather than any type of whitespace
(the literal space character (' ') had already been removed from this list).
This allows things like:
miamivice# ps -opid='Process
> Identifier'
Process
Identifier
1350
1445
1450
To work.
|
|
|
|
|
|
|
|
|
|
| |
realloc(3)] happens to fail, everywhere in ps(1).
Discussed with: bde, charnier (a while ago)
fmt_argv() can no longer return NULL, so don't bother checking.
Submitted by: bde
|
|
|
|
| |
specified by SUSv3.
|
|
|
|
|
| |
description of ps(1), which uses them. I question whether newline and tab
can be either, but I'm not touching them. Yet.
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that multiple -ovar=header lines do not overwrite eachother.
This means that ps -ouser=USERNAME -ouser=WHO would now possibly print:
USERNAME WHO
juli juli
Whereas before it would be:
WHO WHO
juli juli
|
|
|
|
| |
frobbed when/if the pointer it is actually a part of gets freed.
|
|
|
|
|
|
| |
functionality and make it the default.
With additional improvements by: Mark Peek <mp@FreeBSD.org>
|
|
|
|
| |
cleanup courtesy of automatic checking (lint).
|
|
|
|
|
|
|
|
|
| |
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
|
|
|
|
| |
that the keyword is recognized.
|
|
|
|
|
|
| |
in ls(1) and ps(1).
Sponsored by: DARPA, NAI Labs
|
|
|
|
|
|
| |
than useful. It still hits at least 8 digits. Adjust for reality.
This is still not satisfactory for the alpha if you add "-O paddr".
|
| |
|
| |
|
|
|
|
| |
Submitted by: dd
|
|
|
|
|
| |
Submitted by: rgrimes
Obtained from: NetBSD
|