Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3740072imm; Thu, 17 May 2018 13:58:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrMKefC12ZNAcfPHoHFzLs3n6xHf0Huty2nkHDw3UpFEdTsuNq6D0UH0OFmE8rRyNFFGmrh X-Received: by 2002:a17:902:7c94:: with SMTP id y20-v6mr6673054pll.202.1526590695845; Thu, 17 May 2018 13:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526590695; cv=none; d=google.com; s=arc-20160816; b=fx3ySg7tEH+GakuV/M5B5CMjWNhzubO7zX2F9+ZL8SH+BitGZdZtb9ze3Jmv7IbpQH zqjzIr9VJFQyrClw2GB0J/pd1LyE0NXe9mDzS7gztFedBou6Oad84+dV/aCXezFKeozP B/KTx2YvyCAmS09gd0Hk/PSrUqLnvShJEeplZwqlqUDfSNiMzDLuE6BIgMFUJoVVKPnX ueh3ylz+M07VuLe6Ng2MA2BITtmM9u08dCcMGRzzoeKCVabE4zq5yWuZ1qTcMO0fCNuP Pdze7p3jD22pKvDwUinnAhOmNg7I3+njLwcTrkGwU5PFxysji3qnpkh7N6yeMQUOpD4V zOfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=d9ebwFyQRF5YdpfyI9c1bitGvPK8IWwAniEVsHBW4f0=; b=cBq6ngsxCCFYaI3GVnZWhKBuDV7zSrgZxOU9Jp6dIsQ/amWZSPxYSOUUKa55WF0/Cz k//cwwM77CUkYx9peDJYcbxFXZ7HnqB0qq5ndGvaum823eSvKIPxQX6YFCfRc01yTlKy xbuOsFe6FFxBHimBQjc+D5PtINaZ+e4/F4eYVSIKTLnscDif/NEilIiIBUwWUBAdHRVR Z3vktEtJhItRJWajuR/PT3++r6QKoWXHZ1cOfQ609Q11F1td/XwihbO9BSzYwW6UrVLj 3pySoAEvRSn18iulFBL3rruVYiZ6W8lU55lJqXSIMVNGzmSEDXFh+i+00qhoEOxnR77M C0ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si4780033pgn.155.2018.05.17.13.58.01; Thu, 17 May 2018 13:58:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752400AbeEQU4T (ORCPT + 99 others); Thu, 17 May 2018 16:56:19 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33260 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752188AbeEQUz7 (ORCPT ); Thu, 17 May 2018 16:55:59 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D4EF381FE14F; Thu, 17 May 2018 20:55:58 +0000 (UTC) Received: from llong.com (dhcp-17-164.bos.redhat.com [10.18.17.164]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6FFDB2024CBF; Thu, 17 May 2018 20:55:58 +0000 (UTC) From: Waiman Long 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 , Waiman Long Subject: [PATCH v8 6/6] cpuset: Allow reporting of sched domain generation info Date: Thu, 17 May 2018 16:55:45 -0400 Message-Id: <1526590545-3350-7-git-send-email-longman@redhat.com> In-Reply-To: <1526590545-3350-1-git-send-email-longman@redhat.com> References: <1526590545-3350-1-git-send-email-longman@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 17 May 2018 20:55:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 17 May 2018 20:55:58 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'longman@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 fb8aa82b..8f586e8 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