Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp1014736rdb; Fri, 1 Sep 2023 10:08:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGupeHdY81neQGNUOov/p/fuaPfJhoTFHoWkPMl6n8ScDfliEIAokhcQSJmaf+4jgpyt706 X-Received: by 2002:a05:6a00:1ac8:b0:68c:df7:a29d with SMTP id f8-20020a056a001ac800b0068c0df7a29dmr3633158pfv.13.1693588107985; Fri, 01 Sep 2023 10:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693588107; cv=none; d=google.com; s=arc-20160816; b=PuFmQCyTtf4bUfK4R87L3cr1vPMuN9T4tZq3nUVeZ2x6Ki1sPh+jGDa5E3Dkf40YUV bxT7sla7zPDzbIHwez8jMM+TxnJKtHiHGX39YTJuN06aGUtu4wtYXdDWgWuqcfkkzoCm vRw0CsX4CWiQ1zhoAqscmMUtvqF0VV6lG80PPdk8TIWyibY7rFky2t9krJ8HaKfHS67s rTOFK0dirAdF1+gAVSNMQlShlx9UYMa9vrzkitrc5Rm6yneYBERQmJq3QAKDu6y9dbuC B1z+F9hFl1vK8qMt7ISEtdK9giNxjd/MCJ4meYv0wyvHCeGi6kBFqqRhjjofPuRVXWIB Ok7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=I9KHSkI4sjeOJl7k1mkwbFkuAixOZIgwc3aXt9hwtiw=; fh=Y8Ls5Y2Y+fZDG+YDno87OfJDJKW6HnPMhr1wPy4WiNU=; b=qrHi7lhX47yMahT0MGCnOf55PxmCWnkKCW6dlTIabVpcgAJnQgLiRZh9ZNxUFphGBE UXC8nM3yzd12tdLFFgk8aHe5yfpRcw/GuhXGUuNHIUIUYYVbQCn2ww/mBNMBtBO02OP9 ooa/5DhwbwvK3wZFVJnZDBGFid5a+kUigYWADZRV26/UG9dSCLNxyaeaEUvOOe6bRWhE kH8GzwG49RyrXxm4Zwla4H2PwlUCbrrkut1ax73vHyy80Mk+FyGK8U+xSW/7GBOLIQw/ VYbu9c+eoQSBKzelJ/dr1G4YDZAlE7I/478pzUZm2VPPJUoUdcR7ayTntn/rklBeNXDz Vezw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ei55-20020a056a0080f700b0068bdbb23244si3083847pfb.290.2023.09.01.10.08.23; Fri, 01 Sep 2023 10:08:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245433AbjHaPR3 (ORCPT + 30 others); Thu, 31 Aug 2023 11:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243723AbjHaPR2 (ORCPT ); Thu, 31 Aug 2023 11:17:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38ED8E5B; Thu, 31 Aug 2023 08:17:25 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4165DC15; Thu, 31 Aug 2023 08:18:04 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 73D813F64C; Thu, 31 Aug 2023 08:17:21 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com Cc: James Clark , John Garry , Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Kajol Jain , Haixin Yu , Jing Zhang , Ravi Bangoria , Madhavan Srinivasan , Kan Liang , Yang Jihong , Eduard Zingerman , Liam Howlett , Chen Zhongjin , Miguel Ojeda , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/7] perf jevents: Remove unused keyword Date: Thu, 31 Aug 2023 16:16:13 +0100 Message-Id: <20230831151632.124985-3-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230831151632.124985-1-james.clark@arm.com> References: <20230831151632.124985-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'cpuid_not_more_than' was the working title of the new 'strcmp_cpuid_str' keyword and was accidentally left in. It was never used so tidying it up has no effect. Signed-off-by: James Clark --- tools/perf/pmu-events/metric.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/pmu-events/metric.py b/tools/perf/pmu-events/metric.py index 0e9ec65d92ae..1bbb89102901 100644 --- a/tools/perf/pmu-events/metric.py +++ b/tools/perf/pmu-events/metric.py @@ -558,8 +558,7 @@ def ParsePerfJson(orig: str) -> Expression: # Convert accidentally converted scientific notation constants back py = re.sub(r'([0-9]+)Event\(r"(e[0-9]+)"\)', r'\1\2', py) # Convert all the known keywords back from events to just the keyword - keywords = ['if', 'else', 'min', 'max', 'd_ratio', 'source_count', 'has_event', 'strcmp_cpuid_str', - 'cpuid_not_more_than'] + keywords = ['if', 'else', 'min', 'max', 'd_ratio', 'source_count', 'has_event', 'strcmp_cpuid_str'] for kw in keywords: py = re.sub(rf'Event\(r"{kw}"\)', kw, py) try: -- 2.34.1