summaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 17:00:02 +0200
committerIngo Molnar <mingo@elte.hu>2007-10-15 17:00:02 +0200
commiteba1ed4b7e52720e3099325874811c38a5ec1562 (patch)
tree4ce145dd10b6cc248a2bc3463822dff23f9dd3c5 /kernel/sched_debug.c
parenta4b29ba2f72673aaa60ba11ced74d579771dd578 (diff)
downloadblackbird-op-linux-eba1ed4b7e52720e3099325874811c38a5ec1562.tar.gz
blackbird-op-linux-eba1ed4b7e52720e3099325874811c38a5ec1562.zip
sched: debug: track maximum 'slice'
track the maximum amount of time a task has executed while the CPU load was at least 2x. (i.e. at least two nice-0 tasks were runnable) Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Mike Galbraith <efault@gmx.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r--kernel/sched_debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 94915f1fd9de..fd080f686f18 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -254,6 +254,7 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
P(se.sleep_max);
P(se.block_max);
P(se.exec_max);
+ P(se.slice_max);
P(se.wait_max);
P(se.wait_runtime_overruns);
P(se.wait_runtime_underruns);
@@ -282,6 +283,7 @@ void proc_sched_set_task(struct task_struct *p)
p->se.sleep_max = 0;
p->se.block_max = 0;
p->se.exec_max = 0;
+ p->se.slice_max = 0;
p->se.wait_max = 0;
p->se.wait_runtime_overruns = 0;
p->se.wait_runtime_underruns = 0;
OpenPOWER on IntegriCloud