[Devel,rh7] sched: debug: show nr_failed_migrations_cpulimit

Submitted by Vladimir Davydov on Aug. 3, 2016, 12:58 p.m.

Details

Message ID 1470229136-5020-1-git-send-email-vdavydov@virtuozzo.com
State New
Series "sched: debug: show nr_failed_migrations_cpulimit"
Headers show

Commit Message

Vladimir Davydov Aug. 3, 2016, 12:58 p.m.
This is our (non-mainstream) counter counting how many times task
migration failed due to cpulimit restriction. For some reason, we don't
show it in proc although it might be helpful for debugging. Let's fix
that.

Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
---
 kernel/sched/debug.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 55ac5fb78e29..6cf0c2ceedfe 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -594,6 +594,7 @@  void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
 	P(se.statistics.nr_migrations_cold);
 	P(se.statistics.nr_failed_migrations_affine);
 	P(se.statistics.nr_failed_migrations_running);
+	P(se.statistics.nr_failed_migrations_cpulimit);
 	P(se.statistics.nr_failed_migrations_hot);
 	P(se.statistics.nr_forced_migrations);
 	P(se.statistics.nr_wakeups);