Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2129065ybb; Thu, 2 Apr 2020 13:45:14 -0700 (PDT) X-Google-Smtp-Source: APiQypI2LdtZaUKfJiNtJ4augRIgV0lsDgPR22o8v3+yJVzBILV4lfG3fb9T86hT8fWCgGcJ5Nm2 X-Received: by 2002:a4a:ba0b:: with SMTP id b11mr4290738oop.92.1585860313894; Thu, 02 Apr 2020 13:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585860313; cv=none; d=google.com; s=arc-20160816; b=BAtJDgYA4dg1R1Dpjl5qMwGfbRV1bF5CNq8bZUGSRnZqfRi4+xwfLvP/ZzNOZ0pU+u v9zPknhYLXHR27L2nQwueULGCKsY8Zn5jFVBpymYnmyrseAGPdLBIPk4mIQeUU94jaqJ mgW8kDmQQt3YPzrE8jcGAiPuHqHPqlPnw8FI9KwJ8LMR+kUPyB9DjX0+MsBJ9ojHCSKt HLGjSz4xxJB6oZ0ybj1zI6KVyWxWQvzsdKk33P6msx2gM4qjuEQZ9NvbTHrWFaWv2yxV lDmwW43EqfxSEnlFLAJ2XEhapOPLVqBjyVp5Em3YKHsOAOi0gqZRKiVrwKFxS/F9Aglr VfAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=+wAOeQvQiZ2wEBCZ0M/YqIiuBrnn11kALf9WAuldjlo=; b=zkP+LpswWM55lBRmExkSlH8UQaQCxUHplXGHTN1/nX/d7gJomcMIKKzhPBFXcAcmaT /dj26rbYm7ldELewamYLGcYIIEoMVewzY0ZXKLiEhOoD+fnvV6ebBkSgD9AGK3G/BSdJ GDdP/E/L7Kpfol6/Vaj29Pcq+iS1eSF8PLvOq9iXmk+pZNFiuvJ+f0spP9frszpfa1VZ x/hLlUsUPzQvch36//QnDgZCpmqj9IOQVNm312avih8EVKh428MsAq+kdZdDhWJ6Y1NZ Zcn7hZ6wpb1A+RS+4/4Ju9ZsTy6lrS9FXVa1vIWUHT0/9YH8XailsI47CylKQOaG06cI Nhhg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v108si2650951otb.136.2020.04.02.13.45.01; Thu, 02 Apr 2020 13:45:13 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387654AbgDBUmJ (ORCPT + 99 others); Thu, 2 Apr 2020 16:42:09 -0400 Received: from mga02.intel.com ([134.134.136.20]:5472 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbgDBUmJ (ORCPT ); Thu, 2 Apr 2020 16:42:09 -0400 IronPort-SDR: vnFhfmceGWd8DFaWmV3pNXFBy1mBSW+PKfe28nVcztVYWKrkO1xzsKzBCrr3j/jKxLMa5BQG47 hHd2PfKoE6ng== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2020 13:42:07 -0700 IronPort-SDR: dsv12UYcSHLKqNQF74Motq/EX9D7xvMzgi32UbnDrmWg6Z/Sgm/2agiIymeOKwXeQBjWQC0rLF mXXC14UIZbig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,336,1580803200"; d="scan'208";a="360320844" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by fmsmga001.fm.intel.com with ESMTP; 02 Apr 2020 13:42:06 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 35467301813; Thu, 2 Apr 2020 13:42:06 -0700 (PDT) Date: Thu, 2 Apr 2020 13:42:06 -0700 From: Andi Kleen To: Jiri Olsa Cc: Kajol Jain , acme@kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, sukadev@linux.vnet.ibm.com, 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, 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 Subject: Re: [PATCH v8 6/7] tools/perf: Enable Hz/hz prinitg for --metric-only option Message-ID: <20200402204206.GB397326@tassilo.jf.intel.com> References: <20200401203340.31402-1-kjain@linux.ibm.com> <20200401203340.31402-7-kjain@linux.ibm.com> <20200402124946.GH2518490@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200402124946.GH2518490@krava> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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") || > > will this change output of --metric-only for some setups then? > > Andi, are you ok with this? Yes should be ok $ grep -i ScaleUnit.*hz arch/x86/*/* $ Probably was for some metric we later dropped. -Andi