]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita951e81a78da449f488dd0d10637cd44a1b82887
treed147c0a43a66973014d924a6020388a249c509a7
parentbba8a5a18a96fe52c5e6ef3472bda7ac31054f98
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