CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/04/12 08:59:19
Modified files:
sys/sys : sysctl.h
sys/kern : kern_sysctl.c
bin/ps : ps.c
usr.bin/pkill : pkill.c
usr.bin/top : machine.c
lib/libkvm : kvm_getprocs.3 kvm_proc2.c
Log message:
Add per thread accounting, mainly for usage & friends.
This expands the already bloated FILL_KPROC macro to take an extra
parameter that indicates if the callee is a thread or a process.
The userland bits are adjusted accordingly and ps(1) and top(1) now
display per thread usage times when -H is used.
Also pkill(1) had to be adjusted so that duplicates don't pop up.
libkvm does basically the same thing as the kernel bits.
Okay guenther@.