Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1923563rdb; Tue, 5 Sep 2023 08:59:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEexUTWhdrk5WU19BYkKHZXBRbMdwViP7YPDywCwEqQ37U7hCn8VdkqU2z1dlO2ZOO3NgWS X-Received: by 2002:a05:6a21:7807:b0:137:2d73:707f with SMTP id be7-20020a056a21780700b001372d73707fmr10568798pzc.5.1693929584256; Tue, 05 Sep 2023 08:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693929584; cv=none; d=google.com; s=arc-20160816; b=YcFGFfvyPzSHbKi5x2WhGU02997FjRgObu7VsrKoZo0FeS9Q1yuYOL+3luzRFhLw8Y c54PjpmCrBafejgY3RgzwyWMvmrc2WNnQzW5gMkcb6RbWMvlUZIvNx9KBLUx/R23Z+zc vwuN5MbML6wz5q0yuVQYzFU9TVdzB1JyORzdD6ZQhTQB1N8KrpzDdNVydVOpqEQr9JJ8 6hVR1lsGW2tZ7Bfv7YRy0M0eovmXGujeeJ3Mna0CRZNl7BFKuic3E7uLOZXtkQ1CtGgg niksiPIJIBX0ZG2WHwd0MJQ2l8wey/NukhWjJlNp6nJ5UcKoxQO2M2CUWfHuS/YcEQ2D 08mQ== 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=P1HXiq2bPd7ck8tMmo4quyiKTtGd7xlvSmMi/KcsJsY=; fh=9YbzSzdsezBX/gvJ6NskXbUM7MQsmZz5LVDtqDTcsu8=; b=arf9ubKVHr6MTobDj87t59DS70wJCm0IvyfxEYu28tklsrMyoNUVvlS0s5qPkYGLS7 RaYDI6x5O83SrQD/H1hu+a8rvTCRfspCZHaYhXKc/FtLBQKE5UjYNCYTu4pvk2ZBIvOk PC17+nJBqpOU0vRBaEl10k4TRFQyalnPwmNbRVdz+02xp+MzekudGAEtojLSZqzFLwh0 lRb88cxMRdYBwrRX2aUgUbEe2ddLmBSWSfkJdGCY/E/N1PrQ7QX3d831fT5r5LDT5EKE clNF/V1RJBTz/J50/28FwKqShhvX/IA31mb5Ekrz9RilpKIdx1hCy1/y5aCSdxlIxm1o j63Q== 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 p23-20020a056a000a1700b0068a375ecc60si9814401pfh.137.2023.09.05.08.59.40; Tue, 05 Sep 2023 08:59:44 -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 S1348155AbjIDJwi (ORCPT + 19 others); Mon, 4 Sep 2023 05:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239743AbjIDJwh (ORCPT ); Mon, 4 Sep 2023 05:52:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C20C1BD; Mon, 4 Sep 2023 02:52:30 -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 106361042; Mon, 4 Sep 2023 02:53:08 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A1D533F793; Mon, 4 Sep 2023 02:52:26 -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 , Kan Liang , Haixin Yu , Jing Zhang , Kajol Jain , Madhavan Srinivasan , Ravi Bangoria , Yang Jihong , Eduard Zingerman , Liam Howlett , Miguel Ojeda , Chen Zhongjin , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/7] perf jevents: Remove unused keyword Date: Mon, 4 Sep 2023 10:50:44 +0100 Message-Id: <20230904095104.1162928-3-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230904095104.1162928-1-james.clark@arm.com> References: <20230904095104.1162928-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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. Reviewed-by: Ian Rogers 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