Re: [PATCH -tip 1/2] sched: Reinstate group names in /proc/sched_debug.

From: Yong Zhang
Date: Mon Jan 10 2011 - 20:53:19 EST


On Mon, Jan 10, 2011 at 1:15 PM, Bharata B Rao
<bharata@xxxxxxxxxxxxxxxxxx> wrote:
> sched: Reinstate group names in /proc/sched_debug.
>
> Displaying of group names in /proc/sched_debug was dropped in autogroup
> patches. Add group names while displaying cfs_rq and tasks information.
>
> Signed-off-by: Bharata B Rao <bharata@xxxxxxxxxxxxxxxxxx>
> ---
> @@ -144,7 +167,11 @@ void print_cfs_rq(struct seq_file *m, in
> Â Â Â Âstruct sched_entity *last;
> Â Â Â Âunsigned long flags;
>
> +#if defined(CONFIG_CGROUP_SCHED) && defined(CONFIG_FAIR_GROUP_SCHED)

defined(CONFIG_CGROUP_SCHED) is not necessary here,
CONFIG_[FAIR|RT]_GROUP_SCHED always imply CONFIG_CGROUP_SCHED

> + Â Â Â SEQ_printf(m, "\ncfs_rq[%d]:%s\n", cpu, task_group_path(cfs_rq->tg));
> +#else
> Â Â Â ÂSEQ_printf(m, "\ncfs_rq[%d]:\n", cpu);
> +#endif
> Â Â Â ÂSEQ_printf(m, " Â.%-30s: %Ld.%06ld\n", "exec_clock",
> Â Â Â Â Â Â Â Â Â Â Â ÂSPLIT_NS(cfs_rq->exec_clock));
>
> @@ -191,7 +218,11 @@ void print_cfs_rq(struct seq_file *m, in
>
> Âvoid print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq)
> Â{
> +#if defined(CONFIG_CGROUP_SCHED) && defined(CONFIG_RT_GROUP_SCHED)

Ditto.

Thanks,
Yong

--
Only stand for myself
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/