From mboxrd@z Thu Jan 1 00:00:00 1970 From: Waiman Long Subject: [PATCH v9 7/7] cpuset: Allow reporting of sched domain generation info Date: Tue, 29 May 2018 09:41:34 -0400 Message-ID: <1527601294-3444-8-git-send-email-longman@redhat.com> References: <1527601294-3444-1-git-send-email-longman@redhat.com> Return-path: In-Reply-To: <1527601294-3444-1-git-send-email-longman@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Tejun Heo , Li Zefan , Johannes Weiner , Peter Zijlstra , Ingo Molnar Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@fb.com, pjt@google.com, luto@amacapital.net, Mike Galbraith , torvalds@linux-foundation.org, Roman Gushchin , Juri Lelli , Patrick Bellasi , Waiman Long This patch enables us to report sched domain generation information. If DYNAMIC_DEBUG is enabled, issuing the following command echo "file cpuset.c +p" > /sys/kernel/debug/dynamic_debug/control and setting loglevel to 8 will allow the kernel to show what scheduling domain changes are being made. Signed-off-by: Waiman Long --- kernel/cgroup/cpuset.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 9513f90..71fb2d0 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -820,6 +820,12 @@ static int generate_sched_domains(cpumask_var_t **domains, } BUG_ON(nslot != ndoms); +#ifdef CONFIG_DEBUG_KERNEL + for (i = 0; i < ndoms; i++) + pr_debug("generate_sched_domains dom %d: %*pbl\n", i, + cpumask_pr_args(doms[i])); +#endif + done: kfree(csa); -- 1.8.3.1