Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6021647ybi; Wed, 12 Jun 2019 12:33:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKGr7Dho3TCUbNGh0CPMYACMzxRB2MmURdVGCSdITgfD8z6wy2Z0YJ335+aBsS24LlKNHM X-Received: by 2002:a62:e71a:: with SMTP id s26mr42707139pfh.89.1560367995076; Wed, 12 Jun 2019 12:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560367995; cv=none; d=google.com; s=arc-20160816; b=GiBTNjH+MBwuG8aAXYIzM3fu+bx27Uj4p8A24b/GmvVIiLDKBw6CdqwU22iHA/qsqy uD6PmyznubVBk2qhkahXMAJvzVDKW22ia0/FpXq8WXWT/8eWVjWAuO6rTOrtemvFfS/C NfGW7ezdO4rcnj8J3EWmC2rtnhbQsBQP1c+DAmcBYEHItliFwS4lOnDgfz91nDd1vyGF TONbFfLpka8wCKh79Lifkc+rxkfyBeNISlpQLh1iFf/gTGtpbWP4uGMGRAs8IqZqZgc4 bk4Vh03zwIv91Isvt/ryqbm1lsuIvDfA0redbPGTpInqm02fGBnfiHH2Mt7JTe81hcn7 WtPw== 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=ILeShcC7KLAJW5L37vAxWmt1tHyF8tw4BS3wlbsKfUs=; b=RHJwW6Oot0a9Uu1FIdHP0mfPq+M36yePi0gE8+6wwC2wLA7XaC/A2qlWLkeDMv0NMm 68GURwgxoSgAPQUN87WzOr/eSDcaIvQ18ocQ9P5Y4jkWE5KfqSwREoZLj2c4z5uzxme/ TnhqgHB9d0oXKQYDZut0w5hrswRIXCdExOcQVUxgKdAt0xK2/tQS9fR1AzCCVGm4gZXn wqjIdGlVfsL/n071imrlf3sx7GDKeFnGqBv8/Yasiw/6UtthTl+0g2a2d19yEs0Xh4wP wkvMTDpVLXFsgaQfMIXz33ZGaegMFz+iojV1S6SP1zoGoDZdGIc+XMk/CUWjc+5pNgQG fleQ== 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 m1si493845pff.266.2019.06.12.12.32.59; Wed, 12 Jun 2019 12:33: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388368AbfFLTct (ORCPT + 99 others); Wed, 12 Jun 2019 15:32:49 -0400 Received: from shelob.surriel.com ([96.67.55.147]:50414 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728328AbfFLTcs (ORCPT ); Wed, 12 Jun 2019 15:32:48 -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 1hb8z1-0001BN-Sn; Wed, 12 Jun 2019 15:32:31 -0400 From: Rik van Riel To: peterz@infradead.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, kernel-team@fb.com, morten.rasmussen@arm.com, tglx@linutronix.de, dietmar.eggeman@arm.com, mgorman@techsingularity.com, vincent.guittot@linaro.org, Rik van Riel Subject: [PATCH 2/8] sched: change /proc/sched_debug fields Date: Wed, 12 Jun 2019 15:32:21 -0400 Message-Id: <20190612193227.993-3-riel@surriel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190612193227.993-1-riel@surriel.com> References: <20190612193227.993-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 --- 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 678bfb9bd87f..aab4640d66c5 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -419,11 +419,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 @@ -541,7 +539,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", @@ -550,17 +547,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 @@ -964,10 +959,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