From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7625C433DB for ; Fri, 12 Feb 2021 09:11:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89D5C64E0A for ; Fri, 12 Feb 2021 09:11:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89D5C64E0A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jp.fujitsu.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/a0ZZ/ncHVfDIT8qd0wmRMNj6+hgvWcQEKLKR6L3L/0=; b=PICDReVB5UVSet5xWWUixZnXM AFWP3jRc//XHxr6C7bJgC+L+SwLUNbdVE1/7pC+0jxvcsuLHIaLDFfm3kuuibp7XkNhBkl1zo83C1 s7V0k94xSFwe+MG+rtDhT6vndWxj5PQgJVEkK78CTAZRdsvOdE/IEqEl/EI/reehKTyGsRlyyXYit cdw8QpCllDEFonvHewpGNa+boCC+FEN8QC0KHjha5LoDLHt5yZwS/AngzaFvIxQzRva++CzTwKwAi H6kOdiYuQakvYWnPwEFXVFUnQEvjOQcAUTlxj3jgChnulxTP3iUrs8+Zpgkh5FCgSMEjnzBCju8IM m46BoAflw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAUSm-0008G9-0O; Fri, 12 Feb 2021 09:10:08 +0000 Received: from esa2.hc1455-7.c3s2.iphmx.com ([207.54.90.48]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAUSi-0008Dp-TJ for linux-arm-kernel@lists.infradead.org; Fri, 12 Feb 2021 09:10:06 +0000 IronPort-SDR: WbGX88qKTRgonGhnydZo9z4TkX3mAHu3nrPHsjlptr7y4dfwFaBveFsyaUjzw6KAAPLuETptyd WFr2xi5jkN5m/tqU4mHPph/MdVGva99ZmwDMx5XCKjp9eOFT3LeoOna/V6quiLD8MP+7sy8NYI Os0j3ScDl0S8EUWDGxyIpzbyfhGMXLHB8GPP0Vzb1BS19MoNmMkZehb19gImJ7XfXjsQ6Nwbef +9RjHdF3ZJSjDIL3/EWAOONVDiwIU/4rKwNadMYc/4NK97N3HS7Z5+wyIf7DMuLVuEWYuhUhDZ 7xw= X-IronPort-AV: E=McAfee;i="6000,8403,9892"; a="19085310" X-IronPort-AV: E=Sophos;i="5.81,173,1610377200"; d="scan'208";a="19085310" Received: from unknown (HELO yto-r3.gw.nic.fujitsu.com) ([218.44.52.219]) by esa2.hc1455-7.c3s2.iphmx.com with ESMTP; 12 Feb 2021 18:10:01 +0900 Received: from yto-m4.gw.nic.fujitsu.com (yto-nat-yto-m4.gw.nic.fujitsu.com [192.168.83.67]) by yto-r3.gw.nic.fujitsu.com (Postfix) with ESMTP id A7DBB1F5076 for ; Fri, 12 Feb 2021 18:09:59 +0900 (JST) Received: from pumpkin.openstacklocal (pumpkin.fct.css.fujitsu.com [10.130.70.189]) by yto-m4.gw.nic.fujitsu.com (Postfix) with ESMTP id 0909F58496F for ; Fri, 12 Feb 2021 18:09:59 +0900 (JST) Received: by pumpkin.openstacklocal (Postfix, from userid 1012) id 0924382A; Fri, 12 Feb 2021 18:03:19 +0900 (JST) From: Shunsuke Nakamura To: john.garry@huawei.com, will@kernel.org, mathieu.poirier@linaro.org, leo.yan@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org Subject: [PATCH v6 2/3] perf tools: Add lexical definition of event name Date: Fri, 12 Feb 2021 18:03:17 +0900 Message-Id: <20210212090318.1522292-3-nakamura.shun@jp.fujitsu.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210212090318.1522292-1-nakamura.shun@jp.fujitsu.com> References: <20210212090318.1522292-1-nakamura.shun@jp.fujitsu.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210212_041005_211546_E2A86972 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Shunsuke Nakamura Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the lexical definition of event name so that the numbers are recognizable. A64FX defines an event name that starts with a number. - 0inst_commit - 1inst_commit - 2inst_commit - 3inst_commit - 4inst_commit Signed-off-by: Shunsuke Nakamura --- tools/perf/util/parse-events.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l index 0b36285a9435..33f627187415 100644 --- a/tools/perf/util/parse-events.l +++ b/tools/perf/util/parse-events.l @@ -205,7 +205,7 @@ bpf_source [^,{}]+\.c[a-zA-Z0-9._]* num_dec [0-9]+ num_hex 0x[a-fA-F0-9]+ num_raw_hex [a-fA-F0-9]+ -name [a-zA-Z_*?\[\]][a-zA-Z0-9_*?.\[\]]* +name [a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?.\[\]]* name_tag [\'][a-zA-Z_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\'] name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]* drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)? -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel