From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751511Ab1AJFQt (ORCPT ); Mon, 10 Jan 2011 00:16:49 -0500 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:44202 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750982Ab1AJFQr (ORCPT ); Mon, 10 Jan 2011 00:16:47 -0500 Date: Mon, 10 Jan 2011 10:46:43 +0530 From: Bharata B Rao To: linux-kernel@vger.kernel.org Cc: Mike Galbraith , Peter Zijlstra , Ingo Molnar Subject: [PATCH -tip 2/2] sched: Display autogroup names in /proc/sched_debug. Message-ID: <20110110051643.GD2772@in.ibm.com> Reply-To: bharata@linux.vnet.ibm.com References: <20110110051445.GB2772@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110110051445.GB2772@in.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 */