Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1621437ybv; Fri, 14 Feb 2020 03:06:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxBTvyAc3VbuRmVjVZU8yimATz8S6mrJwv054hA2UkbXOKQnTnFAgNs2ueFOzwTJNMlL8/T X-Received: by 2002:aca:fd94:: with SMTP id b142mr1418904oii.11.1581678380498; Fri, 14 Feb 2020 03:06:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581678380; cv=none; d=google.com; s=arc-20160816; b=SjUSeplN5wcSe022sH39/bSrSKIf7Refnv/O19yX8gLwrTnfPVLERPKrc1C13ZqXGp V/duEQLtq0bBKwLD2o8qGJxHm/YW5SeZqESfi6uJ4C8uZap35xhE86z1E1ChBnH12Dbl XXy4nfGEvaYVzWyHLkWQSuVwgR6P/wkWAF4On2vjDv1rTLfCHgTswmEullolgtRDAFOy jsw4nYEHVZgav9Yc68HRVx5aU1U20+xZCOIyn/zlpEtx3zXHxtLIkMl5lqBHJNNFncC8 aSMVmxOivIraKMu2GOmak9T3sGVEQDsjjmehCN7MrhL+rdbqSYqVv8DaymdykR0bd39+ ipNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from; bh=yLYwwqufHC1Id8aCcEadEZVw5OKimr172SvYEc2nY8o=; b=I3+LetXwGU5qe2hE2tNWQUyqZRYpS/fzFuVawMzCQry+K1Yz7/K4EfDwN3WU2TBObG bJTgbXY7F1/OmtWiu5o3QikPGKz3HqKACPQfAA0eJnwOxm7bMKczsR1Exs0VC03P+6Xb Ju6olMC8I7uVS4D5m++unF0jOCK2Hh3k4vl116U3kH0n1cK52EL93uQcbld8f7OXyQ5t O4k2XL5MEnmxjibob9Ffer49I2HRJvC/oi6SnGpWUaIB9n1KBqRR6167wiPK5MpYvZes uor8REF/H7wFcfDVtTsV9cmartze+94aOBXmwUkEkixBGW5QI/4llQAgs6SFHyvUjlxf arBQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si2318154oip.248.2020.02.14.03.06.08; Fri, 14 Feb 2020 03:06:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387524AbgBNLEe (ORCPT + 99 others); Fri, 14 Feb 2020 06:04:34 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54670 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387507AbgBNLEd (ORCPT ); Fri, 14 Feb 2020 06:04:33 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01EB3vW2088855 for ; Fri, 14 Feb 2020 06:04:33 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y4j8gc264-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 14 Feb 2020 06:04:32 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 14 Feb 2020 11:04:30 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 14 Feb 2020 11:04:24 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01EB4NIv59834428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Feb 2020 11:04:23 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4B396A405B; Fri, 14 Feb 2020 11:04:23 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 27DDFA405C; Fri, 14 Feb 2020 11:04:18 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.199.37.109]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 14 Feb 2020 11:04:17 +0000 (GMT) From: Kajol Jain To: acme@kernel.org, linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, anju@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com, ravi.bangoria@linux.ibm.com, peterz@infradead.org, yao.jin@linux.intel.com, ak@linux.intel.com, jolsa@kernel.org, kan.liang@linux.intel.com, jmario@redhat.com, alexander.shishkin@linux.intel.com, mingo@kernel.org, paulus@ozlabs.org, namhyung@kernel.org, mpetlan@redhat.com, gregkh@linuxfoundation.org, benh@kernel.crashing.org, kjain@linux.ibm.com Subject: [PATCH 7/8] tools/perf: Enable Hz/hz prinitg for --metric-only option Date: Fri, 14 Feb 2020 16:33:34 +0530 X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200214110335.31483-1-kjain@linux.ibm.com> References: <20200214110335.31483-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20021411-0016-0000-0000-000002E6BF40 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20021411-0017-0000-0000-00003349C672 Message-Id: <20200214110335.31483-8-kjain@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-14_03:2020-02-12,2020-02-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 impostorscore=0 bulkscore=0 malwarescore=0 mlxscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002140091 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 bc31fccc0057..22dcdfbb9e10 100644 --- a/tools/perf/util/stat-display.c +++ b/tools/perf/util/stat-display.c @@ -236,8 +236,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; -- 2.18.1