[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110110051643.GD2772@in.ibm.com>
Date: Mon, 10 Jan 2011 10:46:43 +0530
From: Bharata B Rao <bharata@...ux.vnet.ibm.com>
To: linux-kernel@...r.kernel.org
Cc: Mike Galbraith <efault@....de>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...e.hu>
Subject: [PATCH -tip 2/2] sched: Display autogroup names in /proc/sched_debug.
sched: Display autogroup names in /proc/sched_debug.
Add autogroup name to cfs_rq and tasks information in /proc/sched_debug.
Signed-off-by: Bharata B Rao <bharata@...ux.vnet.ibm.com>
---
kernel/sched_debug.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -92,6 +92,14 @@ static void print_cfs_group_stats(struct
#ifdef CONFIG_CGROUP_SCHED
static char * task_group_path(struct task_group *tg)
{
+#ifdef CONFIG_SCHED_AUTOGROUP
+ int enabled = ACCESS_ONCE(sysctl_sched_autogroup_enabled);
+
+ if (enabled && tg->autogroup) {
+ autogroup_path(tg, group_path, PATH_MAX);
+ return group_path;
+ }
+#endif
/*
* May be NULL if the underlying cgroup isn't fully-created yet
*/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists