diff options
author | jeff <jeff@FreeBSD.org> | 2007-09-17 05:31:39 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2007-09-17 05:31:39 +0000 |
commit | 3fc0f8b973fdc2f392a3234d653e09d71e2aab98 (patch) | |
tree | e572a7b77f24339d2dc6ebf6b83c1e2c1ce0f6a5 /usr.bin/systat/pigs.c | |
parent | 74666fdfce0e06484d5f82e8fced0c16c06477d1 (diff) | |
download | FreeBSD-src-3fc0f8b973fdc2f392a3234d653e09d71e2aab98.zip FreeBSD-src-3fc0f8b973fdc2f392a3234d653e09d71e2aab98.tar.gz |
- Move all of the PS_ flags into either p_flag or td_flags.
- p_sflag was mostly protected by PROC_LOCK rather than the PROC_SLOCK or
previously the sched_lock. These bugs have existed for some time.
- Allow swapout to try each thread in a process individually and then
swapin the whole process if any of these fail. This allows us to move
most scheduler related swap flags into td_flags.
- Keep ki_sflag for backwards compat but change all in source tools to
use the new and more correct location of P_INMEM.
Reported by: pho
Reviewed by: attilio, kib
Approved by: re (kensmith)
Diffstat (limited to 'usr.bin/systat/pigs.c')
-rw-r--r-- | usr.bin/systat/pigs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/pigs.c b/usr.bin/systat/pigs.c index d6c939b..6d911d6 100644 --- a/usr.bin/systat/pigs.c +++ b/usr.bin/systat/pigs.c @@ -174,7 +174,7 @@ fetchpigs() pt[i].pt_kp = &kpp[i]; pctp = &pt[i].pt_pctcpu; ftime = kpp[i].ki_swtime; - if (ftime == 0 || (kpp[i].ki_sflag & PS_INMEM) == 0) + if (ftime == 0 || (kpp[i].ki_flag & P_INMEM) == 0) *pctp = 0; else *pctp = ((double) kpp[i].ki_pctcpu / |