diff options
author | Jay Lan <jlan@engr.sgi.com> | 2006-10-01 02:28:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:29 -0400 |
commit | f3cef7a99469afc159fec3a61b42dc7ca5b6824f (patch) | |
tree | b1805a0d0b4a273b8ce0a245c17570ff18abdc5b /kernel/taskstats.c | |
parent | 7d1bdca9b06acb3df07329eaff72d5eaf1543287 (diff) |
[PATCH] csa: basic accounting over taskstats
Add some basic accounting fields to the taskstats struct, add a new
kernel/tsacct.c to handle basic accounting data handling upon exit. A handle
is added to taskstats.c to invoke the basic accounting data handling.
Signed-off-by: Jay Lan <jlan@sgi.com>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jes Sorensen <jes@sgi.com>
Cc: Chris Sturtivant <csturtiv@sgi.com>
Cc: Tony Ernst <tee@sgi.com>
Cc: Guillaume Thouvenin <guillaume.thouvenin@bull.net>
Cc: "Michal Piotrowski" <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/taskstats.c')
-rw-r--r-- | kernel/taskstats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/taskstats.c b/kernel/taskstats.c index c451af2ddb50..6c38dce88e8c 100644 --- a/kernel/taskstats.c +++ b/kernel/taskstats.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
20 | #include <linux/taskstats_kern.h> | 20 | #include <linux/taskstats_kern.h> |
21 | #include <linux/tsacct_kern.h> | ||
21 | #include <linux/delayacct.h> | 22 | #include <linux/delayacct.h> |
22 | #include <linux/cpumask.h> | 23 | #include <linux/cpumask.h> |
23 | #include <linux/percpu.h> | 24 | #include <linux/percpu.h> |
@@ -198,7 +199,10 @@ static int fill_pid(pid_t pid, struct task_struct *pidtsk, | |||
198 | */ | 199 | */ |
199 | 200 | ||
200 | delayacct_add_tsk(stats, tsk); | 201 | delayacct_add_tsk(stats, tsk); |
202 | |||
203 | /* fill in basic acct fields */ | ||
201 | stats->version = TASKSTATS_VERSION; | 204 | stats->version = TASKSTATS_VERSION; |
205 | bacct_add_tsk(stats, tsk); | ||
202 | 206 | ||
203 | /* Define err: label here if needed */ | 207 | /* Define err: label here if needed */ |
204 | put_task_struct(tsk); | 208 | put_task_struct(tsk); |