All of lore.kernel.org
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Ian Rogers <irogers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	Kan Liang <kan.liang@linux.intel.com>,
	Andi Kleen <ak@linux.intel.com>,
	Dominique Martinet <asmadeus@codewreck.org>,
	linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] perf parse-events: Tidy name token matching
Date: Wed, 19 Feb 2025 12:49:42 -0800	[thread overview]
Message-ID: <Z7ZD5phOOCbKggrn@google.com> (raw)
In-Reply-To: <CAP-5=fWZAk7XqtL+=CanefkuFxhDsJ22+-uHkrxXi4g8123oew@mail.gmail.com>

Hi Ian,

On Wed, Feb 19, 2025 at 11:02:40AM -0800, Ian Rogers wrote:
> On Mon, Feb 10, 2025 at 11:23 AM Ian Rogers <irogers@google.com> wrote:
> >
> > On Thu, Jan 9, 2025 at 9:54 AM Ian Rogers <irogers@google.com> wrote:
> > >
> > > Prior to commit 70c90e4a6b2f ("perf parse-events: Avoid scanning PMUs
> > > before parsing") names (generally event names) excluded hyphen (minus)
> > > symbols as the formation of legacy names with hyphens was handled in
> > > the yacc code. That commit allowed hyphens supposedly making
> > > name_minus unnecessary. However, changing name_minus to name has
> > > issues in the term config tokens as then name ends up having priority
> > > over numbers and name allows matching numbers since commit
> > > 5ceb57990bf4 ("perf parse: Allow tracepoint names to start with digits
> > > "). It is also permissable for a name to match with a colon (':') in
> > > it when its in a config term list. To address this rename name_minus
> > > to term_name, make the pattern match name's except for the colon, add
> > > number matching into the config term region with a higher priority
> > > than name matching. This addresses an inconsistency and allows greater
> > > matching for names inside of term lists, for example, they may start
> > > with a number.
> > >
> > > Rename name_tag to quoted_name and update comments and helper
> > > functions to avoid str detecting quoted strings which was already done
> > > by the lexer.
> > >
> > > Signed-off-by: Ian Rogers <irogers@google.com>
> >
> > Ping. This patch addresses name parsing inconsistencies, in particular
> > events may start with a number without a PMU, but not with. It also
> > aims to give better names to patterns than name_minus and name_tag
> > (with term_name and quoted_name respectively) that have drifted from
> > their original meaning and become to me less than intention revealing.
> 
> Ping.

Sorry for the delay.  Can you please give an example for better
understanding if there's a change in the behavior?

Thanks,
Namhyung


  reply	other threads:[~2025-02-19 20:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09 17:54 [PATCH v1] perf parse-events: Tidy name token matching Ian Rogers
2025-02-10 19:23 ` Ian Rogers
2025-02-19 19:02   ` Ian Rogers
2025-02-19 20:49     ` Namhyung Kim [this message]
2025-02-19 22:11       ` Ian Rogers
2025-02-19 22:27         ` Namhyung Kim
2025-02-19 22:43           ` Ian Rogers
2025-02-21  6:34             ` Namhyung Kim
2025-02-24  5:39 ` Namhyung Kim

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=Z7ZD5phOOCbKggrn@google.com \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=ak@linux.intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=asmadeus@codewreck.org \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.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.