NAME | SYNOPSIS | DESCRIPTION | OPTIONS | USAGE | EXIT STATUS | FILES | ATTRIBUTES | SUMMARY OF TRUSTED SOLARIS CHANGES | SEE ALSO
The proc tools are utilities that exercise features of /proc (see proc(4) ). Most of them take a list of process-ids ( pid ); those that do also accept /proc/ nnn as a process-id, so the shell expansion /proc/* can be used to specify all processes in the system.
Print the /proc tracing flags, the pending and held signals, and other /proc status information for each lwp in each process.
Print the credentials (effective, real, saved UID s and GID s) of each process.
Print the address space map of each process.
List the dynamic libraries linked into each process, including shared objects explicitly attached using dlopen(3X) . See also ldd(1) .
List the signal actions of each process. See signal(5) .
Print a hex+symbolic stack trace for each lwp in each process.
Report fstat(2) and fcntl(2) information for all open files in each process.
Print the current working directory of each process.
Stop each process ( PR_REQUESTED stop).
Set each process running (inverse of pstop ).
Wait for all of the specified processes to terminate.
Print the process trees containing the specified pid s or user s, with child processes indented from their respective parent processes. An argument of all digits is taken to be a process-id, otherwise it is assumed to be a user login name. Default is all processes.
Time the command , like time(1) , but using microstate accounting for reproducible precision. Unlike time(1) , children of the command are not timed.
The following options are supported:
( pflags only) If the process is stopped, display its machine registers.
( pmap only) Print the process' reserved addresses.
( pmap and pattr only) Print resident/shared/private mapping details.
( pmap only) Print unresolved dynamic linker map names.
( ptree and ppriv only) All; include children of process 0.
( pwait only) Verbose; report terminations to standard output.
Force; grab the target process even if another process has control.
These proc tools stop their target processes while inspecting them and reporting the results: pfiles , pldd , pmap , pstack , pwdx . A process can do nothing while it is stopped. Thus, for example, if the X server is inspected by one of these proc tools running in a window under the X server's control, the whole window system can become deadlocked because the proc tool would be attempting to print its results to a window that cannot be refreshed. Logging in from from another system using rlogin(1) and killing the offending proc tool would clear up the deadlock in this case.
Caution should be exercised when using the -F flag. Imposing two controlling processes on one victim process can lead to chaos. Safety is assured only if the primary controlling process, typically a debugger, has stopped the victim process and the primary controlling process is doing nothing at the moment of application of the proc tool in question.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Availability | SUNWtsu (32-bit) |
SUNWtsxu (64-bit) |
ldd(1) , ps(1) , pwd(1) , rlogin(1) , time(1) , truss(1) , wait(1) , dlopen(3X) , attributes(5) , signal(5)
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | USAGE | EXIT STATUS | FILES | ATTRIBUTES | SUMMARY OF TRUSTED SOLARIS CHANGES | SEE ALSO