Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp27231ybd; Fri, 28 Jun 2019 13:50:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEDf8Iw5wy6YSn/CycH1jeTKzWfGqx17KOnuMMRAS/nyY+06yQJJrUd+DX/2rh4DEBIA4p X-Received: by 2002:a17:90a:9a95:: with SMTP id e21mr15147726pjp.98.1561755046567; Fri, 28 Jun 2019 13:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561755046; cv=none; d=google.com; s=arc-20160816; b=ziIaKps7EWAM+0UwffbkGoemUD2+XLoDjiKegbAqI9nff/Dyb3kU5zbG/nkHRMErI+ 1mlNdVnz1T6TA/m/qVoSBL70waZDWSF0PIF/CwXkfU5ZpKFj0tQqcbHMXlmJyabW+nox 7wIk22cBhGlMqFMcuNnflo7lSOfp29bxW+nhZSkSNEVn7K8saG8nIzdDqa1YUknDK7Kc 7caiqRfpaOp86ELvm5lFKmPvpHmP7CY69S3O6ZD7p01Lp9tS50hVMMCu5bjynlrOdDGR 60QehDtCnx6jbUthxvNELPTohE9+qEopvy5vReYYiSQ6+xOD2pa8Bba4z+EZ9c2o5TmX rqbw== 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=HvBR46cViPy5M6RUac0Q2KC7owAssA/3JJffkddHYiM=; b=t1vGD4UOHaV8BvFmWb/pYgSiMrDZwYxJJwz3s9ISR5VtTQp4Z2h7RI7LkflYOG2QOc 1dq3XN/dyeZJDyvCEdqI2oBDNaEwa4vbdEFWqv2ZFmi+VmAHSWq/+TsehZkzZM2vqsse IWbjk/nbBill4AMNTI+0CFOiSzvpsnlqGRMHH0N4AHnV2L7foeKBxeT4+k1QCGSPiM2C 750O83p3txyTbJCxLnpj3HIq2pNIYe51D9LJqII5aFdccT6VJtMjBHojNfiTOIKe+QVd d7EOFfWDq4bDGQgznE9x2TYxoD/eLPZRPO7a3S+III9i9nChoNtkCaRyZHhxC+/0pWIJ 6k8g== 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 c12si2806301pgq.533.2019.06.28.13.50.31; Fri, 28 Jun 2019 13:50:46 -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 S1726716AbfF1Uth (ORCPT + 99 others); Fri, 28 Jun 2019 16:49:37 -0400 Received: from shelob.surriel.com ([96.67.55.147]:38504 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfF1Utg (ORCPT ); Fri, 28 Jun 2019 16:49:36 -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 1hgxo6-0007TL-Fu; Fri, 28 Jun 2019 16:49:18 -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 Subject: [PATCH 02/10] sched: change /proc/sched_debug fields Date: Fri, 28 Jun 2019 16:49:05 -0400 Message-Id: <20190628204913.10287-3-riel@surriel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190628204913.10287-1-riel@surriel.com> References: <20190628204913.10287-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 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