| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
feature is to quisce the system before suspend.
Stop is implemented by reusing the thread_single(9) with the special
mode SINGLE_ALLPROC. SINGLE_ALLPROC differs from the existing
single-threading modes by allowing (requiring) caller to operate on
other process. Interruptible sleeps for !TDF_SBDRY threads are
suspended like SIGSTOP does it, instead of aborting the sleep, like
SINGLE_NO_EXIT, to avoid spurious EINTRs on resume.
Provide debugging sysctl debug.stop_all_proc, which causes total stop
and suspends syncer, while waiting for variable reset for resume. It
is used for debugging; should be removed after the real use of the
interface is added.
In collaboration with: pho
Discussed with: avg
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
| |
Add a separate field which exports tracer pid and add a new keyword
("tracer") for ps to display it.
This is a follow up to r270444.
Reviewed by: kib
MFC after: 1 week
Relnotes: yes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
One problem is inferior(9) looping due to the process tree becoming a
graph instead of tree if the parent is traced by child. Another issue
is due to the use of p_oppid to restore the original parent/child
relationship, because real parent could already exited and its pid
reused (noted by mjg).
Add the function proc_realparent(9), which calculates the parent for
given process. It uses the flag P_TREE_FIRST_ORPHAN to detect the head
element of the p_orphan list and than stepping back to its container
to find the parent process. If the parent has already exited, the
init(8) is returned.
Move the P_ORPHAN and the new helper flag from the p_flag* to new
p_treeflag field of struct proc, which is protected by proctree lock
instead of proc lock, since the orphans relationship is managed under
the proctree_lock already.
The remaining uses of p_oppid in ptrace(PT_DETACH) and process
reapping are replaced by proc_realparent(9).
Phabric: D417
Reviewed by: jhb
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
|
|
|
|
|
| |
Reviewed by: jhb
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
-J 0 can be used to show only host processes.
Patch partially based on work by bz@
PR: bin/78763
MFC after: 2 weeks
Relnotes: yes
|
|
|
|
|
|
| |
parent is suspended, not the process itself.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ps(1) utility, e.g. "ps -O fib".
bin/ps/keyword.c:
Add the "fib" keyword and default its column name to "FIB".
bin/ps/ps.1:
Add "fib" as a supported keyword.
sys/compat/freebsd32/freebsd32.h:
sys/kern/kern_proc.c:
sys/sys/user.h:
Add the default fib number for a process (p->p_fibnum)
to the user land accessible process data of struct kinfo_proc.
Submitted by: Oliver Fromme <olli@fromme.com>, gibbs
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
| |
Submitted by: pluknet
Approved by: kib (mentor)
X-MFC-With: r240645
|
|
|
|
|
| |
Approved by: kib (mentor)
MFC after: 1 week
|
|
|
|
|
| |
Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week
|
|
|
|
|
| |
this syntax violation and while I'm here also convert <TAB> to Ta and adjust
quotation marks in order to prevent this problem in the future.
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
Spotted by: arundel
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
| |
instead of "?".
Submitted by: arundel
|
|
|
|
|
|
| |
Submitted by: Valentin Nechayev (netch % netch!kiev!ua), arundel
MFC after: 1 week
With-MFC: 225908
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- there's no reason the semantics of the -x flag are being explained in
the -a flag description
- be more precise regarding the relation between the -a flag and the
security.bsd.see_other_uids sysctl
- describe the format of the -t flag's argument
- 'con' no longer is a possible entry in the 'TT' column
- explain that the 'TT' column refers to pseudo-terminals via mere numbers
- add a hint in the 'tt' keyword description that a keyword 'tty' exists,
which will give the full terminal pathname
Submitted by: arundel (via docs@) (original)
MFC after: 1 week
With-MFC: 225908
|
|
|
|
|
| |
Submitted by: arundel (via docs@)
MFC after: 1 week
|
| |
|
| |
|
|
|
|
|
|
|
| |
and effective group name. Also, add "egid", "egroup" and "euid" aliases.
PR: bin/146331
Submitted by: Jeremie Le Hen <jeremie at le-hen dot org>
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
| |
pointer just like a dublicating "uprocp".
MFC after: 1 week
|
|
|
|
|
| |
Suggested by: arundel@
Reviewed by: arundel@
|
|
|
|
|
|
|
| |
corresponding times reported by getrusage().
Submitted by: Dan Nelson <dnelson allantgroup com>
MFC after: 1 week
|
|
|
|
| |
it using "ps -o class".
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
process address.
Add "tdaddr" keyword to ps(1) to display this thread address.
Distilled from Sandvine's patch set by Mark Johnston.
|
| |
|
|
|
|
| |
MFC after: 4 weeks
|
|
|
|
|
|
| |
o) Give slightly better (i.e. any) documentation of the format of "etime".
Reviewed by: jilles
|
|
|
|
|
|
|
| |
signals for process and its threads are distinct.
Reviewed by: jilles
MFC after: 2 weeks
|
|
|
|
| |
Approved by: re (kib)
|
|
|
|
|
|
| |
This is similar to linux's -H (or -f) switch.
MFC after: 3 weeks
|
| |
|
| |
|
|
|
|
|
|
| |
characters can be included in a custom column title string --
that's why it may appear at the end of a keyword list argument
only.
|
|
|
|
|
|
|
|
| |
the header title string "bar" extends to the end of the argument
even if it contains commas or spaces, unlike in RELENG_4 or earlier.
The modern syntax agrees with SUSv3.
MFC after: 3 days
|
|
|
|
| |
Submitted by: Michal Varga
|
|
|
|
|
| |
Reviewed by: gad
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Document the fact that empty heading text suppresses the
heading line (e.g. 'ps -o pid='), as this is very useful
in scripts.
- Describe logname keyword more completely.
- Describe the printing of arguments more completely.
- Put lockname in the correct alphabetical order in the list
of all keywords.
- Correct sentence in standards section.
Submitted by: Jilles Tjoelker <jilles at stack nl>
PR: docs/73618
MFC After: 1 week
|
| |
|
| |
|
|
|
|
| |
Pointed out by: ru (some time ago)
|
|
|
|
|
|
| |
Remove reference to /dev/lomac, which is no longer used by mac_lomac(4).
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
threads, put the command name in square brackets instead of parenthesis.
This matches NetBSD, and also seems to be what linux does. The sentence
which is added to the man page is taken straight from NetBSD.
PR: bin/65803
Submitted by: Cyrille Lefevre
Obtained from: NetBSD
|
| |
|
|
|
|
|
|
|
| |
(session-pointer) info which was dropped from `ps' earlier in 5.x.
PR: bin/59423
Submitted by: Jilles Tjoelker
|