From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19E7DC83F17 for ; Mon, 28 Jul 2025 13:03:38 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1061471.1427054 (Exim 4.92) (envelope-from ) id 1ugNVd-0000hV-MY; Mon, 28 Jul 2025 13:03:17 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1061471.1427054; Mon, 28 Jul 2025 13:03:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ugNVd-0000hO-Jz; Mon, 28 Jul 2025 13:03:17 +0000 Received: by outflank-mailman (input) for mailman id 1061471; Mon, 28 Jul 2025 13:03:16 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ugNVc-0000hI-En for xen-devel@lists.xenproject.org; Mon, 28 Jul 2025 13:03:16 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1ugNVa-005o4Z-2k; Mon, 28 Jul 2025 13:03:14 +0000 Received: from [2a01:cb15:80df:da00:7360:a082:15b4:b94d] (helo=l14) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ugNVa-00Ek4U-1r; Mon, 28 Jul 2025 13:03:14 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date; bh=u+Fjf4MM40khgh+20MZwMimyxt1O9LssdNjA0JtQTFI=; b=Yi7GbuFuzLgkzFPQxwbePKjl+g ObnSU/TQW62dUGb/DI54qCMBrgLJ3zILDZaHW1i8+zA6UUmmp4q7c3zOrlto5mazMC3b2IQhbCJz8 u4Yt08fiX129ai43BCN/z2Hs0Uh45p+AbnuU0EcivsbHM6fncHQJV8hJpjpxyP6AUVlE=; Date: Mon, 28 Jul 2025 15:03:13 +0200 From: Anthony PERARD To: Jan Beulich Cc: Penny Zheng , ray.huang@amd.com, Anthony PERARD , xen-devel@lists.xenproject.org Subject: Re: [PATCH v6 03/19] tools: optimize cpufreq average freq print Message-ID: References: <20250711035106.2540522-1-Penny.Zheng@amd.com> <20250711035106.2540522-4-Penny.Zheng@amd.com> <09887347-4b42-46f9-8462-0b76babb2617@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09887347-4b42-46f9-8462-0b76babb2617@suse.com> On Wed, Jul 16, 2025 at 04:43:32PM +0200, Jan Beulich wrote: > On 11.07.2025 05:50, Penny Zheng wrote: > > Unlike Cx/Px states, for which we need an extra loop to summerize residency ( > > sum_cx[]/sum_px[]), we could call get_avgfreq_by_cpuid() right before printing. > > Also, with later introduction of CPPC mode, average frequency print shall > > not depend on the existence of legacy P-states, so we remove "px_cap" > > dependancy check. > > > > Signed-off-by: Penny Zheng > > Reviewed-by: Jan Beulich Acked-by: Anthony PERARD Thanks, -- Anthony PERARD