1:1 Userland threading stage 2.10/4:
authorSimon Schubert <corecode@dragonflybsd.org>
Mon, 1 Jan 2007 22:51:18 +0000 (22:51 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Mon, 1 Jan 2007 22:51:18 +0000 (22:51 +0000)
commitfde7ac71e825ab31f5dc05901822a3e33c67fe5c
tree0b199564ec60d86063548ddc9676d456cc154998
parent6531e18db922383f34a8b69c2a7c05aafccb0e59
1:1 Userland threading stage 2.10/4:

Separate p_stats into p_ru and lwp_ru.

proc.p_ru keeps track of all statistics directly related to a proc.  This
consists of RSS usage and nswap information and aggregate numbers for all
former lwps of this proc.

proc.p_cru is the sum of all stats of reaped children.

lwp.lwp_ru contains the stats directly related to one specific lwp, meaning
packet, scheduler switch or page fault counts, etc.  This information gets
added to lwp.lwp_proc.p_ru when the lwp exits.
26 files changed:
bin/ps/print.c
bin/ps/ps.c
bin/ps/ps.h
sys/emulation/linux/linux_misc.c
sys/kern/init_main.c
sys/kern/kern_acct.c
sys/kern/kern_clock.c
sys/kern/kern_exit.c
sys/kern/kern_proc.c
sys/kern/kern_resource.c
sys/kern/kern_sig.c
sys/kern/kern_synch.c
sys/kern/tty.c
sys/kern/uipc_socket.c
sys/kern/usched_bsd4.c
sys/kern/usched_dummy.c
sys/kern/vfs_aio.c
sys/kern/vfs_bio.c
sys/netinet/sctp_output.c
sys/netproto/smb/smb_subr.c
sys/sys/proc.h
sys/sys/resourcevar.h
sys/sys/user.h
sys/vfs/procfs/procfs_status.c
sys/vm/vm_fault.c
sys/vm/vm_glue.c