Add scaled time to taskstats based process accounting
authorMichael Neuling <mikey@neuling.org>
Thu, 18 Oct 2007 10:06:34 +0000 (03:06 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:28 +0000 (14:37 -0700)
commitc66f08be7e3ad0a28bcd9a0aef766fdf08ea0ec6
treed147c0a43a66973014d924a6020388a249c509a7
parent898eb71cb17644964c5895fb190e79e3d0c49679
Add scaled time to taskstats based process accounting

This adds items to the taststats struct to account for user and system
time based on scaling the CPU frequency and instruction issue rates.

Adds account_(user|system)_time_scaled callbacks which architectures
can use to account for time using this mechanism.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kernel_stat.h
include/linux/sched.h
include/linux/taskstats.h
kernel/delayacct.c
kernel/fork.c
kernel/sched.c
kernel/timer.c
kernel/tsacct.c