Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp996290ybb; Wed, 1 Apr 2020 13:35:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsxYt+Ar/5Xj60RJ6dZgrdoesBULiK0iUCYbNBvMz0/Vd6vXurKBFw1mjcJ/o9oHwXuextT X-Received: by 2002:a9d:8d0:: with SMTP id 74mr18443714otf.39.1585773357393; Wed, 01 Apr 2020 13:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585773357; cv=none; d=google.com; s=arc-20160816; b=oqfKN/eJjc+N/DA8RAAX8ORGE70Ftg4x0Vhg2K/jANStwLGEpErHE436IgAtLctMbb 1RIG38YqVynVg6o8lECfl7SrE9oAZwEgKufoJqc0135snGiZ0lmzAdztxQjIhhlwZU2T f9J+zIYChBSKsRIiB6Li7OuYCCcWFEQk8c/tvdJudWPd0BUxXWejV6WUm6ih7bMd9IIE TTb0rYVCHv/3FRkHCzoGgrwb99apqCbwadjPe0MYG2ZIgVULhQYB24WRaFtYH9Bw/Kio NOhIPakqIhRx76s797A2SjHK2N8Wv5qxgoNC46/yjAiW6tnrjdWp6O+ZfS7lJF45WID5 AtMQ== 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=FSoCmp8ur/f/sTkb1Dvi0QnO73DUBBZeQ5Sd6kjAECQ=; b=ATo4NUde6zqSIxVh607o6TbgSiJrXHXbHqMV9YoHDaoqHgGwXln06viaCtQw4hqNEt mRhZ+CMA2xo64F728NvCpEa8RNFjdBOCs5qBV6TuSvZ30Cy1TRZfXmf/anSx5UoPypBc tf6C6v2AOlRHW4F0qakWi9P23tstleOVZL3n/ys1VhM+II+4qksq9OLvAmyrGV4jTuqw aI4YsvWO0cnB/AjTyPprTlkBH6h3QDUUPC7HXzM+lxOrpaEYrL2xRR/syZCeyqhyjmfS twID7w0pmeh6sedhJYMU5ljxu8HBxAm8zM+bZC8b4tRl73aMZWFrcWbvfg3Iwpc3iZgG nRng== 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 z12si1226532otm.3.2020.04.01.13.35.44; Wed, 01 Apr 2020 13:35:57 -0700 (PDT) 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 S1733165AbgDAUfG (ORCPT + 99 others); Wed, 1 Apr 2020 16:35:06 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41828 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733144AbgDAUfF (ORCPT ); Wed, 1 Apr 2020 16:35:05 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 031KXBSn119958 for ; Wed, 1 Apr 2020 16:35:04 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 304ym0v54v-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 01 Apr 2020 16:35:04 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 1 Apr 2020 21:34:45 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 1 Apr 2020 21:34:39 +0100 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 031KYsKh64094430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Apr 2020 20:34:54 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B053DA405B; Wed, 1 Apr 2020 20:34:54 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE120A4054; Wed, 1 Apr 2020 20:34:48 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.199.38.236]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 1 Apr 2020 20:34:48 +0000 (GMT) From: Kajol Jain To: acme@kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, sukadev@linux.vnet.ibm.com 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, mamatha4@linux.vnet.ibm.com, mark.rutland@arm.com, tglx@linutronix.de, kjain@linux.ibm.com Subject: [PATCH v8 6/7] tools/perf: Enable Hz/hz prinitg for --metric-only option Date: Thu, 2 Apr 2020 02:03:39 +0530 X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200401203340.31402-1-kjain@linux.ibm.com> References: <20200401203340.31402-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20040120-0020-0000-0000-000003BFCEB7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20040120-0021-0000-0000-000022187661 Message-Id: <20200401203340.31402-7-kjain@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-01_04:2020-03-31,2020-04-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 impostorscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004010170 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 9e757d18d713..679aaa655824 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; -- 2.21.0