diff options
author | Shailabh Nagar <nagar@watson.ibm.com> | 2006-07-14 03:24:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-15 00:53:56 -0400 |
commit | ca74e92b4698276b6696f15a801759f50944f387 (patch) | |
tree | 26f0de66d8207608e07ee22389bfc173e773c0c2 /kernel/exit.c | |
parent | e8f4d97e1b58b50ad6449bb2d35e6632c0236abd (diff) |
[PATCH] per-task-delay-accounting: setup
Initialization code related to collection of per-task "delay" statistics which
measure how long it had to wait for cpu, sync block io, swapping etc. The
collection of statistics and the interface are in other patches. This patch
sets up the data structures and allows the statistics collection to be
disabled through a kernel boot parameter.
Signed-off-by: Shailabh Nagar <nagar@watson.ibm.com>
Signed-off-by: Balbir Singh <balbir@in.ibm.com>
Cc: Jes Sorensen <jes@sgi.com>
Cc: Peter Chubb <peterc@gelato.unsw.edu.au>
Cc: Erich Focht <efocht@ess.nec.de>
Cc: Levent Serinol <lserinol@gmail.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 6664c084783d..3c2cf91defa7 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/mount.h> | 25 | #include <linux/mount.h> |
26 | #include <linux/proc_fs.h> | 26 | #include <linux/proc_fs.h> |
27 | #include <linux/mempolicy.h> | 27 | #include <linux/mempolicy.h> |
28 | #include <linux/delayacct.h> | ||
28 | #include <linux/cpuset.h> | 29 | #include <linux/cpuset.h> |
29 | #include <linux/syscalls.h> | 30 | #include <linux/syscalls.h> |
30 | #include <linux/signal.h> | 31 | #include <linux/signal.h> |
@@ -900,6 +901,7 @@ fastcall NORET_TYPE void do_exit(long code) | |||
900 | #endif | 901 | #endif |
901 | if (unlikely(tsk->audit_context)) | 902 | if (unlikely(tsk->audit_context)) |
902 | audit_free(tsk); | 903 | audit_free(tsk); |
904 | delayacct_tsk_exit(tsk); | ||
903 | exit_mm(tsk); | 905 | exit_mm(tsk); |
904 | 906 | ||
905 | if (group_dead) | 907 | if (group_dead) |