Lines 199-205
Link Here
|
199 |
set $nproc = nprocs |
199 |
set $nproc = nprocs |
200 |
set $aproc = allproc.lh_first |
200 |
set $aproc = allproc.lh_first |
201 |
set $proc = allproc.lh_first |
201 |
set $proc = allproc.lh_first |
202 |
printf " pid proc uid ppid pgrp flag stat comm wchan\n" |
202 |
printf " pid proc uid ppid pgrp flag stat comm wchan\n" |
203 |
while (--$nproc >= 0) |
203 |
while (--$nproc >= 0) |
204 |
set $pptr = $proc.p_pptr |
204 |
set $pptr = $proc.p_pptr |
205 |
if ($pptr == 0) |
205 |
if ($pptr == 0) |
Lines 208-214
Link Here
|
208 |
if ($proc.p_state) |
208 |
if ($proc.p_state) |
209 |
set $thread = $proc->p_threads.tqh_first |
209 |
set $thread = $proc->p_threads.tqh_first |
210 |
while ($thread) |
210 |
while ($thread) |
211 |
printf "%5d %08x %4d %5d %5d %06x %d %-10s ", \ |
211 |
printf "%5d %18p %4d %5d %5d %06x %d %-10s ", \ |
212 |
$proc.p_pid, $aproc, \ |
212 |
$proc.p_pid, $aproc, \ |
213 |
$proc.p_ucred->cr_ruid, $pptr->p_pid, \ |
213 |
$proc.p_ucred->cr_ruid, $pptr->p_pid, \ |
214 |
$proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \ |
214 |
$proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \ |