Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6031597ybv; Tue, 18 Feb 2020 08:33:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzo3VxAgLnA9xg9KgFs0wJzkGTpEA1Y2XVdF9tZnJa6DzhWbNe/P0d3DyvIOky0LFuDyNJA X-Received: by 2002:aca:2210:: with SMTP id b16mr1724516oic.32.1582043586684; Tue, 18 Feb 2020 08:33:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582043586; cv=none; d=google.com; s=arc-20160816; b=GjcWXJ7Jfi9BQRG05EviEk1mqmeKxwA/+3PkEzButYMSDRsumfLWkGEGdpDK6ZnmBG NpPMveDyA0gSiBXYwyVAD+R/7BH2nz90Trjt701T9qh6qZhgMAHg468yaIrd+LqPJJNi w6D67r3H6F/+1IK9ESe6beU6WFBhDjbQ97bKO5S/n5Vxx1inLoIjGhqomre6WW8jZSHm znjkVWlhQImUru/mpYpSP9Jz0OTMcEt0qozwxQdoYZOi4x5B0BzFGiDF5F7427P2es3c FiJSOR/JLQ3Z8p8Hw1kaGL819MkG+MG1Jbmvfi88mw7RXp8gCRkupxzVqo2hNQEgyG3/ y4Jw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vbpbcvKMQgWoA1HEJwJUvM9XQlkEAF5dQ6ivAYK+AeE=; b=Wkf0m3ceDFo8HYs//4T8+vTEgheFuJznaiX7HJj11Ar90pmIxmL6AweQn9jLFlPnS6 GSIAcFk6zFliVv4zLgHCAT1wDJbpP5kYVazx2gmhOXLcsG5NFzPwYPXqOnolwgFHgeUo ySrm0DERGr3jLAsejlo63bojEfBd2dRSAro98Yw8oUfhtij2tCwRIoMJaiG5mDj2wnKJ 57ONaYtYoBdMQxhvIuk4Ze/RRDRxrltubmvILlkf0r/yo2BA+F3EoXgNl6wC2f4fxMHZ H/f/eRoxc0yGkiLhODZCNJO+2QPpQppETiiOxx/Gn2XtGJ7EJg9TIpviU1HcDk+7ybdR rhKA== 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 t184si7562816oie.165.2020.02.18.08.32.54; Tue, 18 Feb 2020 08:33:06 -0800 (PST) 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 S1726852AbgBRQbc (ORCPT + 99 others); Tue, 18 Feb 2020 11:31:32 -0500 Received: from foss.arm.com ([217.140.110.172]:55334 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbgBRQbc (ORCPT ); Tue, 18 Feb 2020 11:31:32 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 169C130E; Tue, 18 Feb 2020 08:31:32 -0800 (PST) Received: from [10.0.2.15] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 35C673F68F; Tue, 18 Feb 2020 08:31:30 -0800 (PST) Subject: Re: [PATCH v2 4/5] sched/pelt: Add a new runnable average signal To: Vincent Guittot Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel , Phil Auld , Parth Shah , Hillf Danton References: <20200214152729.6059-1-vincent.guittot@linaro.org> <20200214152729.6059-5-vincent.guittot@linaro.org> <5ea96f6e-433e-1520-56dc-a10e9a8e63c7@arm.com> From: Valentin Schneider Message-ID: Date: Tue, 18 Feb 2020 16:30:42 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/02/2020 15:28, Vincent Guittot wrote: >>> @@ -532,8 +535,8 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq) >>> 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); >> >> Shouldn't that have been part of patch 3? > > No this was used to propagate load_avg > Right, sorry about that. >> >> +DECLARE_UPDATE_TG_CFS_SIGNAL(util); >> +DECLARE_UPDATE_TG_CFS_SIGNAL(runnable); > > TBH, I prefer keeping the current version which is easier to read IMO > I did call it an eldritch horror :-) I agree with you here, it's a shame we don't really have better ways to factorize this (I don't think splitting the inputs is really an alternative).