Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp43153ybj; Fri, 8 May 2020 06:10:32 -0700 (PDT) X-Google-Smtp-Source: APiQypJeC10mwSDmUrArwmEtN6lPqSgGS9nDUKZNLDPQx2yHA/KX7UICNcuxJluOvln/jEVEOYu7 X-Received: by 2002:a17:907:1119:: with SMTP id qu25mr1700275ejb.291.1588943432413; Fri, 08 May 2020 06:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943432; cv=none; d=google.com; s=arc-20160816; b=OeifrSIOS7+Such4iH7osERP7y8u11FK75kyhLCkViUiw/WQhhh8t0FJgRBRCldu14 hA64WnIOBjuZWAb9SD0wky6ZqZc6HqqmGSvPdpdnklfqsWjYE4+zoW3+9uyHIi9RM3RX P/gZyXauhUl1N7gYb5Qlih9rE0yXGXe5rVbNZzTRpYxssINP5ZuTZ/wAOqAl2WrqzMTn zCLWvNyIvEgzzhLvYbr5aQwciB6i/qWMUF0FSq95KtdHOSoYIPQ/sZ3Z8CDLyzIeVQ7B FyCmLgKl7Rr8SBaCorYZTZOcuBQgAazNsI40aouYSvwhrDIKTrl5LWqWAdS2gmiypJsM z+Fw== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=oiH3J15old5n8sVFfLfyL7WDXzpzO4z4eXB2JTDch7w=; b=YUO5cGkYkagQAoeTKi4LDg8qOTuWYa/J/73B2viIK5clsNJE/LuKBlMs7uKiIk6bqi HJKsj5XxxwhG5dLR2ha4flMcedMV8k8wZ6tn88F8CMtan9sjI63Talo2eYta5PDm3bwS Q0Rj8ZBfNcYICrmY5WFr8Kcc5vl8v9AIbV0Yq8flg3zL/CregI5WaOxG+nvHdmhMalYE X8PZNkGlYzDMlI4GqpNHADWYdNyOYGOve5B7eNcgBeUAU5fIa0tnpOhLOLM+fuj71ufp DWpjZvY115OXMVqN/4pPYcQZlySqxwlShedSb3YHQUj6/+/l76cbVlyTFATRHKgKj/F+ DZag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si822875edc.405.2020.05.08.06.10.08; Fri, 08 May 2020 06:10:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729943AbgEHNIO (ORCPT + 99 others); Fri, 8 May 2020 09:08:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726811AbgEHNFl (ORCPT ); Fri, 8 May 2020 09:05:41 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCEBFC05BD09; Fri, 8 May 2020 06:05:40 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jX2gu-0007lX-1Q; Fri, 08 May 2020 15:05:24 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id DDDEF1C0838; Fri, 8 May 2020 15:05:07 +0200 (CEST) Date: Fri, 08 May 2020 13:05:07 -0000 From: "tip-bot2 for Kajol Jain" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf tools: Enable Hz/hz prinitg for --metric-only option Cc: Kajol Jain , Jiri Olsa , Alexander Shishkin , Andi Kleen , Anju T Sudhakar , Benjamin Herrenschmidt , "Greg Kroah-Hartman" , Jin Yao , Joe Mario , Kan Liang , Madhavan Srinivasan , Mamatha Inamdar , Mark Rutland , Michael Ellerman , Michael Petlan , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Ravi Bangoria , Sukadev Bhattiprolu , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20200401203340.31402-7-kjain@linux.ibm.com> References: <20200401203340.31402-7-kjain@linux.ibm.com> MIME-Version: 1.0 Message-ID: <158894310784.8414.347891140580420790.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 3351c6da896bf521b118bfbb699fbda8f2a816b3 Gitweb: https://git.kernel.org/tip/3351c6da896bf521b118bfbb699fbda8f2a816b3 Author: Kajol Jain AuthorDate: Thu, 02 Apr 2020 02:03:39 +05:30 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 30 Apr 2020 10:48:33 -03:00 perf tools: Enable Hz/hz prinitg for --metric-only option Commit 54b5091606c18 ("perf stat: Implement --metric-only mode") added function 'valid_only_metric()' which drops "Hz" or "hz", if it is part of "ScaleUnit". This patch enable it since hv_24x7 supports couple of frequency events. Signed-off-by: Kajol Jain Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Anju T Sudhakar Cc: Benjamin Herrenschmidt Cc: Greg Kroah-Hartman Cc: Jin Yao Cc: Joe Mario Cc: Kan Liang Cc: Madhavan Srinivasan Cc: Mamatha Inamdar Cc: Mark Rutland Cc: Michael Ellerman Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Ravi Bangoria Cc: Sukadev Bhattiprolu Cc: Thomas Gleixner Cc: linuxppc-dev@lists.ozlabs.org Link: http://lore.kernel.org/lkml/20200401203340.31402-7-kjain@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/stat-display.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c index 9e757d1..679aaa6 100644 --- a/tools/perf/util/stat-display.c +++ b/tools/perf/util/stat-display.c @@ -237,8 +237,6 @@ static bool valid_only_metric(const char *unit) if (!unit) return false; if (strstr(unit, "/sec") || - strstr(unit, "hz") || - strstr(unit, "Hz") || strstr(unit, "CPUs utilized")) return false; return true;