All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shunsuke Nakamura <nakamura.shun@jp.fujitsu.com>
To: john.garry@huawei.com
Cc: will@kernel.org, mathieu.poirier@linaro.org, leo.yan@linaro.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Shunsuke Nakamura <nakamura.shun@jp.fujitsu.com>
Subject: [PATCH v2 2/3] perf tools: Fix lexical definition of event name
Date: Thu, 21 Jan 2021 19:54:24 +0900	[thread overview]
Message-ID: <20210121105425.2695843-3-nakamura.shun@jp.fujitsu.com> (raw)
In-Reply-To: <20210121105425.2695843-1-nakamura.shun@jp.fujitsu.com>

Fix 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 <nakamura.shun@jp.fujitsu.com>
---
 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 9db5097..e6bbbd0 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_*?\.:]+)?
-- 
1.8.3.1


WARNING: multiple messages have this Message-ID (diff)
From: Shunsuke Nakamura <nakamura.shun@jp.fujitsu.com>
To: john.garry@huawei.com
Cc: Shunsuke Nakamura <nakamura.shun@jp.fujitsu.com>,
	mathieu.poirier@linaro.org, linux-kernel@vger.kernel.org,
	leo.yan@linaro.org, will@kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/3] perf tools: Fix lexical definition of event name
Date: Thu, 21 Jan 2021 19:54:24 +0900	[thread overview]
Message-ID: <20210121105425.2695843-3-nakamura.shun@jp.fujitsu.com> (raw)
In-Reply-To: <20210121105425.2695843-1-nakamura.shun@jp.fujitsu.com>

Fix 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 <nakamura.shun@jp.fujitsu.com>
---
 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 9db5097..e6bbbd0 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_*?\.:]+)?
-- 
1.8.3.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2021-01-21 11:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-21 10:54 [PATCH v2 0/3] perf vendor events: Support PMU events for A64FX Shunsuke Nakamura
2021-01-21 10:54 ` Shunsuke Nakamura
2021-01-21 10:54 ` [PATCH v2 1/3] perf vendor events: Add cache refill and DCZVA events Shunsuke Nakamura
2021-01-21 10:54   ` Shunsuke Nakamura
2021-01-21 11:39   ` Shaokun Zhang
2021-01-21 11:39     ` Shaokun Zhang
2021-01-21 17:43     ` John Garry
2021-01-21 17:43       ` John Garry
2021-01-22  8:35       ` nakamura.shun
2021-01-22  8:35         ` nakamura.shun
2021-01-21 10:54 ` Shunsuke Nakamura [this message]
2021-01-21 10:54   ` [PATCH v2 2/3] perf tools: Fix lexical definition of event name Shunsuke Nakamura
2021-01-21 10:54 ` [PATCH v2 3/3] perf vendor events: Add Fujitsu A64FX V1.2 pmu event Shunsuke Nakamura
2021-01-21 10:54   ` Shunsuke Nakamura
2021-01-21 17:41   ` John Garry
2021-01-21 17:41     ` John Garry
2021-01-22  8:37     ` nakamura.shun
2021-01-22  8:37       ` nakamura.shun
2021-01-25 12:46       ` John Garry
2021-01-25 12:46         ` John Garry
2021-01-26  8:03         ` nakamura.shun
2021-01-26  8:03           ` nakamura.shun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210121105425.2695843-3-nakamura.shun@jp.fujitsu.com \
    --to=nakamura.shun@jp.fujitsu.com \
    --cc=john.garry@huawei.com \
    --cc=leo.yan@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.