Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4467091ioa; Wed, 27 Apr 2022 04:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6dc4Rgvgrw1emFrhV+tr6uyIA1YZFvp2Dl498x31fsRX2t+DLMzsprSH4GeJqLDksPLWt X-Received: by 2002:a17:90b:4a09:b0:1d2:de49:9be8 with SMTP id kk9-20020a17090b4a0900b001d2de499be8mr44057264pjb.68.1651059497251; Wed, 27 Apr 2022 04:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651059497; cv=none; d=google.com; s=arc-20160816; b=IJb6klJs3eDnrc5tXoSf4a3OAaoL4MT6rhOwiBP4dupzo0msK/HViKje7eaykSw6mA Gnr9WFbubqNVnixBJUfR3kWjcXUQB2OaavUrrV4zxlpG3cnkOJ4/0aC6fJx4rp9JBaF4 DGwwLOdn1HLcmwrqU2+6Nn5eFELSqHWzlwmJtwYd/jzUkmCRDRMVak9bT+RyzuWeJa0f +w/vEeK5iokWOSWYrTLkH0mJTF9u+xhaNXT5bciOC2g86B6SrowLtfZVX4/3Q1zI72hG TA71PWIr9RQc/uDBHzA4zQImgX4RWXQRL9Ne2gYYSTQ6Uk2P3rY3uwgJHSA7ifC5wQ7t 1q+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8MW2qePqz+ea6PStgSKcGw0KOyStEOFXqyUf+L3kg2E=; b=Y8DiAwHHURw1kbUxWkUUdWNt1Rb9wsdW1AMhJCNSbEjb1xI7ihpm052OkPxE6+J0FD GHEqz5lTtAELo/OvYnRZe49asujk4ErUU+AzMioQTLzPB3xHr0MFoO20oQxXzR3TStcr a3daqxZnHNmXesSrntb9Nfu7LscVDf0WKxb6idOiJnoFjEl8cSADGW0j3BI4Y3xOfYYF BlufbK5/m27M1kVUIMEOjBg+UOcjXMrWeCXlpAWitnjXpAi3Vif3BXdeMW+gIHm81olr cpeQZpC3NzVhIb9Wfyz2NgZb9YG27tLbRIb+3JoIZhnmi4tqr+VLz+9x+flqYTpQUqpE 9lBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=behZyIvQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b8-20020a056a00114800b0050d67ef8296si1223680pfm.370.2022.04.27.04.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=behZyIvQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B51962894E4; Wed, 27 Apr 2022 03:31:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359021AbiD0Hr7 (ORCPT + 99 others); Wed, 27 Apr 2022 03:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359023AbiD0Hrz (ORCPT ); Wed, 27 Apr 2022 03:47:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D391594A6 for ; Wed, 27 Apr 2022 00:44:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D4F30B82522 for ; Wed, 27 Apr 2022 07:44:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03C78C385A9; Wed, 27 Apr 2022 07:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651045480; bh=I18bs66G2uf5DPVlbIEaZXD74gjZ9PfE8Eqt8iUP8H0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=behZyIvQY9Orw+SuOUoSnrENbyYurLUx8yzQRGdfUiL6S7YhOL5uQAdTr2+F3TqIq 0W+NlnK7tVCl8dWx0oXmNt2qPTjS3G5sgjQYfg2C01dccSf1vkUUZ/3xoXa9ahR+9b MV3r/CbO5C45QHgMfy/7OeDmyh3NjOzHQPz9eDvU= Date: Wed, 27 Apr 2022 09:44:37 +0200 From: Greg KH To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, sudeep.holla@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, rafael@kernel.org, rostedt@goodmis.org, mingo@redhat.com Subject: Re: [PATCH v3] arch_topology: Trace the update thermal pressure Message-ID: References: <20220427073551.19032-1-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427073551.19032-1-lukasz.luba@arm.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 27, 2022 at 08:35:51AM +0100, Lukasz Luba wrote: > Add trace event to capture the moment of the call for updating the thermal > pressure value. It's helpful to investigate how often those events occur > in a system dealing with throttling. This trace event is needed since the > old 'cdev_update' might not be used by some drivers. > > The old 'cdev_update' trace event only provides a cooling state > value: [0, n]. That state value then needs additional tools to translate > it: state -> freq -> capacity -> thermal pressure. This new trace event > just stores proper thermal pressure value in the trace buffer, no need > for additional logic. This is helpful for cooperation when someone can > simply sends to the list the trace buffer output from the platform (no > need from additional information from other subsystems). > > There are also platforms which due to some design reasons don't use > cooling devices and thus don't trigger old 'cdev_update' trace event. > They are also important and measuring latency for the thermal signal > raising/decaying characteristics is in scope. This new trace event > would cover them as well. > > We already have a trace point 'pelt_thermal_tp' which after a change to > trace event can be paired with this new 'thermal_pressure_update' and > derive more insight what is going on in the system under thermal pressure > (and why). > > Reported-by: kernel test robot The kernel test robot did not report that you needed to add a new trace event :(