aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r--kernel/sched_debug.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 70c7e0b79946..6988cf08f705 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -285,12 +285,16 @@ static void print_cpu(struct seq_file *m, int cpu)
285 285
286#ifdef CONFIG_SCHEDSTATS 286#ifdef CONFIG_SCHEDSTATS
287#define P(n) SEQ_printf(m, " .%-30s: %d\n", #n, rq->n); 287#define P(n) SEQ_printf(m, " .%-30s: %d\n", #n, rq->n);
288#define P64(n) SEQ_printf(m, " .%-30s: %Ld\n", #n, rq->n);
288 289
289 P(yld_count); 290 P(yld_count);
290 291
291 P(sched_switch); 292 P(sched_switch);
292 P(sched_count); 293 P(sched_count);
293 P(sched_goidle); 294 P(sched_goidle);
295#ifdef CONFIG_SMP
296 P64(avg_idle);
297#endif
294 298
295 P(ttwu_count); 299 P(ttwu_count);
296 P(ttwu_local); 300 P(ttwu_local);
@@ -395,6 +399,7 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
395 PN(se.sum_exec_runtime); 399 PN(se.sum_exec_runtime);
396 PN(se.avg_overlap); 400 PN(se.avg_overlap);
397 PN(se.avg_wakeup); 401 PN(se.avg_wakeup);
402 PN(se.avg_running);
398 403
399 nr_switches = p->nvcsw + p->nivcsw; 404 nr_switches = p->nvcsw + p->nivcsw;
400 405
@@ -409,6 +414,8 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
409 PN(se.wait_max); 414 PN(se.wait_max);
410 PN(se.wait_sum); 415 PN(se.wait_sum);
411 P(se.wait_count); 416 P(se.wait_count);
417 PN(se.iowait_sum);
418 P(se.iowait_count);
412 P(sched_info.bkl_count); 419 P(sched_info.bkl_count);
413 P(se.nr_migrations); 420 P(se.nr_migrations);
414 P(se.nr_migrations_cold); 421 P(se.nr_migrations_cold);
@@ -479,6 +486,8 @@ void proc_sched_set_task(struct task_struct *p)
479 p->se.wait_max = 0; 486 p->se.wait_max = 0;
480 p->se.wait_sum = 0; 487 p->se.wait_sum = 0;
481 p->se.wait_count = 0; 488 p->se.wait_count = 0;
489 p->se.iowait_sum = 0;
490 p->se.iowait_count = 0;
482 p->se.sleep_max = 0; 491 p->se.sleep_max = 0;
483 p->se.sum_sleep_runtime = 0; 492 p->se.sum_sleep_runtime = 0;
484 p->se.block_max = 0; 493 p->se.block_max = 0;