From: Srivatsa Vaddagiri Date: Mon, 15 Oct 2007 15:00:09 +0000 (+0200) Subject: sched: print &rq->cfs stats X-Git-Tag: v2.6.24-rc1~1289^2~87 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75c28ace9f2b2f403674e045939424a77c95b47c;p=linux-2.6 sched: print &rq->cfs stats - Print &rq->cfs statistics as well (useful for group scheduling) Signed-off-by: Srivatsa Vaddagiri Signed-off-by: Dhaval Giani Signed-off-by: Ingo Molnar Signed-off-by: Peter Zijlstra Reviewed-by: Thomas Gleixner --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index d8d2e2ff51..556942cf26 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -1024,6 +1024,9 @@ static void print_cfs_stats(struct seq_file *m, int cpu) { struct cfs_rq *cfs_rq; +#ifdef CONFIG_FAIR_GROUP_SCHED + print_cfs_rq(m, cpu, &cpu_rq(cpu)->cfs); +#endif for_each_leaf_cfs_rq(cpu_rq(cpu), cfs_rq) print_cfs_rq(m, cpu, cfs_rq); }