Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/procstat/procstat.1
Show First 20 Lines • Show All 424 Lines • ▼ Show 20 Lines | |||||
signal name | signal name | ||||
.It FLAGS | .It FLAGS | ||||
process signal disposition details, three symbols | process signal disposition details, three symbols | ||||
.Bl -tag -width X -compact | .Bl -tag -width X -compact | ||||
.It P | .It P | ||||
if signal is pending in the global process queue; - otherwise. | if signal is pending in the global process queue; - otherwise. | ||||
.It I | .It I | ||||
if signal delivery disposition is | if signal delivery disposition is | ||||
.Dv SIG_IGN; | .Dv SIG_IGN ; | ||||
- otherwise. | - otherwise. | ||||
.It C | .It C | ||||
if the signal will be caught; - otherwise. | if the signal will be caught; - otherwise. | ||||
.El | .El | ||||
.El | .El | ||||
.Pp | .Pp | ||||
If | If | ||||
.Fl n | .Fl n | ||||
▲ Show 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | |||||
command | command | ||||
.It AUXV | .It AUXV | ||||
auxiliary vector name | auxiliary vector name | ||||
.It VALUE | .It VALUE | ||||
auxiliary vector value | auxiliary vector value | ||||
.El | .El | ||||
.Sh EXIT STATUS | .Sh EXIT STATUS | ||||
.Ex -std | .Ex -std | ||||
.Sh EXAMPLES | |||||
Show binary information about the current shell: | |||||
.Bd -literal -offset indent | |||||
$ procstat binary $$ | |||||
PID COMM OSREL PATH | |||||
46620 bash 1201000 /usr/local/bin/bash | |||||
.Ed | |||||
.Pp | |||||
Same as above but showing information about open file descriptors: | |||||
.Bd -literal -offset indent | |||||
$ procstat files $$ | |||||
PID COMM FD T V FLAGS REF OFFSET PRO NAME | |||||
46620 bash text v r r------- - - - /usr/local/bin/bash | |||||
46620 bash ctty v c rw------ - - - /dev/pts/12 | |||||
46620 bash cwd v d r------- - - - /tmp | |||||
46620 bash root v d r------- - - - / | |||||
46620 bash 0 v c rw------ 7 372071 - /dev/pts/12 | |||||
46620 bash 1 v c rw------ 7 372071 - /dev/pts/12 | |||||
46620 bash 2 v c rw------ 7 372071 - /dev/pts/12 | |||||
46620 bash 255 v c rw------ 7 372071 - /dev/pts/12 | |||||
.Ed | |||||
.Pp | |||||
Show the arguments used to launch | |||||
.Xr init 8 : | |||||
.Bd -literal -offset indent | |||||
$ procstat arguments 1 | |||||
PID COMM ARGS | |||||
1 init /sbin/init -- | |||||
.Ed | |||||
.Pp | |||||
Extract binary information from a core dump: | |||||
.Bd -literal -offset indent | |||||
$ procstat binary core.36642 | |||||
PID COMM OSREL PATH | |||||
36642 top 1201000 /usr/bin/top | |||||
.Ed | |||||
.Pp | |||||
Trying to extract information from a core file generated in a different major | |||||
.Fx | |||||
0mp: .Fx should be on its own line. | |||||
Done Inline Actions
Sorry! neither mandoc nor igor said a thing :-) fernape: > .Fx should be on its own line.
Sorry! neither `mandoc` nor `igor` said a thing :-) | |||||
Not Done Inline ActionsThey are not perfect :D. 0mp: They are not perfect :D. | |||||
version might show an error like this: | |||||
.Bd -literal -offset indent | |||||
$ procstat mplayer.core | |||||
procstat: kinfo_proc structure size mismatch | |||||
procstat: procstat_getprocs() | |||||
.Ed | |||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr fstat 1 , | .Xr fstat 1 , | ||||
.Xr ps 1 , | .Xr ps 1 , | ||||
.Xr sockstat 1 , | .Xr sockstat 1 , | ||||
.Xr cap_enter 2 , | .Xr cap_enter 2 , | ||||
.Xr cap_rights_limit 2 , | .Xr cap_rights_limit 2 , | ||||
.Xr mlock 2 , | .Xr mlock 2 , | ||||
.Xr mlockall 2 , | .Xr mlockall 2 , | ||||
Show All 29 Lines |
.Fx should be on its own line.