summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorKamalesh Babulal <kamalesh@linux.vnet.ibm.com>2013-06-25 13:33:36 +0530
committerIngo Molnar <mingo@kernel.org>2013-06-27 10:07:46 +0200
commit939fd731eb88a0cdd9058d0b0143563172a217d7 (patch)
tree5207af4b258f42102260c0b3fbd76752d6e2f071 /kernel
parenta9dc5d0e33c677619e4b97a38c23db1a42857905 (diff)
downloadlinux-939fd731eb88a0cdd9058d0b0143563172a217d7.tar.bz2
sched/debug: Add load-tracking statistics to task
At present we print per-entity load-tracking statistics for cfs_rq of cgroups/runqueues. Given that per task statistics is maintained, it can be used to know the contribution made by the task to its parenting cfs_rq level. This patch adds per-task load-tracking statistics to /proc/<PID>/sched. Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20130625080336.GA20175@linux.vnet.ibm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/debug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index d803989defc0..626320985366 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -566,6 +566,12 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
"nr_involuntary_switches", (long long)p->nivcsw);
P(se.load.weight);
+#if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED)
+ P(se.avg.runnable_avg_sum);
+ P(se.avg.runnable_avg_period);
+ P(se.avg.load_avg_contrib);
+ P(se.avg.decay_count);
+#endif
P(policy);
P(prio);
#undef PN