aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:02 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:02 -0400
commiteba1ed4b7e52720e3099325874811c38a5ec1562 (patch)
tree4ce145dd10b6cc248a2bc3463822dff23f9dd3c5 /kernel/sched_debug.c
parenta4b29ba2f72673aaa60ba11ced74d579771dd578 (diff)
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)
254 P(se.sleep_max); 254 P(se.sleep_max);
255 P(se.block_max); 255 P(se.block_max);
256 P(se.exec_max); 256 P(se.exec_max);
257 P(se.slice_max);
257 P(se.wait_max); 258 P(se.wait_max);
258 P(se.wait_runtime_overruns); 259 P(se.wait_runtime_overruns);
259 P(se.wait_runtime_underruns); 260 P(se.wait_runtime_underruns);
@@ -282,6 +283,7 @@ void proc_sched_set_task(struct task_struct *p)
282 p->se.sleep_max = 0; 283 p->se.sleep_max = 0;
283 p->se.block_max = 0; 284 p->se.block_max = 0;
284 p->se.exec_max = 0; 285 p->se.exec_max = 0;
286 p->se.slice_max = 0;
285 p->se.wait_max = 0; 287 p->se.wait_max = 0;
286 p->se.wait_runtime_overruns = 0; 288 p->se.wait_runtime_overruns = 0;
287 p->se.wait_runtime_underruns = 0; 289 p->se.wait_runtime_underruns = 0;