Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7347705ybi; Mon, 22 Jul 2019 11:26:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwO4xCCoo0vVPv5tEAGaSLIKbCyrW56VwMvTgwElnskBUVjy+k3SBCT4fSglUgnDY02Ps3x X-Received: by 2002:a17:90a:360c:: with SMTP id s12mr79446332pjb.30.1563819996301; Mon, 22 Jul 2019 11:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563819996; cv=none; d=google.com; s=arc-20160816; b=uaoYf4YI+o7fTntXYxYD8tCLh0A7WXXVxgWHQuXHe1MeAXYt/xOCZJImURsO2NoWKK OzHLJbzlP+Eki5jzdk22xbMqKYXlduYMBNC2PbqSVL2bM3Az/w1lzPEr7N8+M6CvT/yT 47fOZdojVE1mvD/lfCxo5DK0XeKNU7nUhX+JZs38N8WkFVDK/S7s7MGbVqAgHG4qqXC1 NEiN4ihJeROozAHLfeUlYTjctQjY2gz7xelWA9O3uIX/rVbofLAcUQSeQn1kOgtfdZhR 6ZYoQ2eooUONQ+xCGxJ+r5NN6eIQ7Qa4HSNvDzoc1Jip1eM7DokMZQeacWJkP7u7ZvDi g/8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/NA2hfHQ2zzvTIsdrJ7IjFaQWeXro6Kk1V4l91llirA=; b=uc53q1BhNrTz5sP+KE2A8tXCQy1AgG6Ya5nebvIEBDt4lMDt1ZKu+b/gY6efJngYOU MtSO648kYerPhhUGC57k8znqL0ojCvFnPu/LQdGoNOO7RHGAWHZhHgPHbBBg5sftl+rg 8gskDViu5LtQcjYoE8eHQnjV8nXY1V6rpCeo3SIcmKbLMEfgjD7GJWZ/+Z0JQjh0SsTQ vR7BoOGcp3OA0C/GQ0qmc2Tj3HMpMyNjbVib+Ahvd7gZqFyck6uzt3wsjIK69aHmP2gs Z8gIpy8ML09X1/08KGFRNXc6K6yj6OHypGuVhLTtCW83gt5cqUIpyEJfUIjR4dxjOmEn XoAQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si36984031pjb.98.2019.07.22.11.26.20; Mon, 22 Jul 2019 11:26:36 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728697AbfGVRe6 (ORCPT + 99 others); Mon, 22 Jul 2019 13:34:58 -0400 Received: from shelob.surriel.com ([96.67.55.147]:37732 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727789AbfGVReX (ORCPT ); Mon, 22 Jul 2019 13:34:23 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hpcC7-0003HL-WF; Mon, 22 Jul 2019 13:33:52 -0400 From: Rik van Riel To: linux-kernel@vger.kernel.org Cc: kernel-team@fb.com, pjt@google.com, dietmar.eggemann@arm.com, peterz@infradead.org, mingo@redhat.com, morten.rasmussen@arm.com, tglx@linutronix.de, mgorman@techsingularity.net, vincent.guittot@linaro.org, Rik van Riel , Josef Bacik Subject: [PATCH 02/14] sched: change /proc/sched_debug fields Date: Mon, 22 Jul 2019 13:33:36 -0400 Message-Id: <20190722173348.9241-3-riel@surriel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190722173348.9241-1-riel@surriel.com> References: <20190722173348.9241-1-riel@surriel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove some fields from /proc/sched_debug that are removed from sched_entity in a subsequent patch, and add h_load, which comes in very handy to debug CPU controller weight distribution. Signed-off-by: Rik van Riel Reviewed-by: Josef Bacik --- kernel/sched/debug.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 14c6a8716ba1..f6beaca97a09 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -416,11 +416,9 @@ static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group } P(se->load.weight); - P(se->runnable_weight); #ifdef CONFIG_SMP P(se->avg.load_avg); P(se->avg.util_avg); - P(se->avg.runnable_load_avg); #endif #undef PN_SCHEDSTAT @@ -538,7 +536,6 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq) SEQ_printf(m, " .%-30s: %d\n", "nr_running", cfs_rq->nr_running); SEQ_printf(m, " .%-30s: %ld\n", "load", cfs_rq->load.weight); #ifdef CONFIG_SMP - SEQ_printf(m, " .%-30s: %ld\n", "runnable_weight", cfs_rq->runnable_weight); SEQ_printf(m, " .%-30s: %lu\n", "load_avg", cfs_rq->avg.load_avg); SEQ_printf(m, " .%-30s: %lu\n", "runnable_load_avg", @@ -547,17 +544,15 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq) cfs_rq->avg.util_avg); SEQ_printf(m, " .%-30s: %u\n", "util_est_enqueued", cfs_rq->avg.util_est.enqueued); - SEQ_printf(m, " .%-30s: %ld\n", "removed.load_avg", - cfs_rq->removed.load_avg); SEQ_printf(m, " .%-30s: %ld\n", "removed.util_avg", cfs_rq->removed.util_avg); - SEQ_printf(m, " .%-30s: %ld\n", "removed.runnable_sum", - cfs_rq->removed.runnable_sum); #ifdef CONFIG_FAIR_GROUP_SCHED SEQ_printf(m, " .%-30s: %lu\n", "tg_load_avg_contrib", cfs_rq->tg_load_avg_contrib); SEQ_printf(m, " .%-30s: %ld\n", "tg_load_avg", atomic_long_read(&cfs_rq->tg->load_avg)); + SEQ_printf(m, " .%-30s: %lu\n", "h_load", + cfs_rq->h_load); #endif #endif #ifdef CONFIG_CFS_BANDWIDTH @@ -961,10 +956,8 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, "nr_involuntary_switches", (long long)p->nivcsw); P(se.load.weight); - P(se.runnable_weight); #ifdef CONFIG_SMP P(se.avg.load_sum); - P(se.avg.runnable_load_sum); P(se.avg.util_sum); P(se.avg.load_avg); P(se.avg.runnable_load_avg); -- 2.20.1