[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200728121722.GF40195@kernel.org>
Date: Tue, 28 Jul 2020 09:17:22 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: "Jin, Yao" <yao.jin@...ux.intel.com>
Cc: Jiri Olsa <jolsa@...nel.org>, lkml <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Michael Petlan <mpetlan@...hat.com>,
Ian Rogers <irogers@...gle.com>,
Stephane Eranian <eranian@...gle.com>,
Andi Kleen <ak@...ux.intel.com>,
Thomas Richter <tmricht@...ux.ibm.com>
Subject: Re: [PATCHv2 2/2] perf tools: Fix term parsing for raw syntax
Em Mon, Jul 27, 2020 at 08:26:27AM +0800, Jin, Yao escreveu:
>
>
> On 7/27/2020 8:21 AM, Jin, Yao wrote:
> >
> >
> > On 7/26/2020 3:52 PM, Jiri Olsa wrote:
> > > Jin Yao reported issue with possible conflict between raw
> > > events and term values in pmu event syntax.
> > >
> > > Currently following syntax is resolved as raw event with
> > > 0xead value:
> > > uncore_imc_free_running/read/
> > >
> > > instead of using 'read' term from uncore_imc_free_running pmu,
> > > because 'read' is correct raw event syntax with 0xead value.
> > >
> > > To solve this issue we do following:
> > > - check existing terms during rXXXX syntax processing
> > > and make them priority in case of conflict
> > > - allow pmu/r0x1234/ syntax to be able to specify conflicting
> > > raw event (implemented in previous patch)
> > >
> > > Also adding automated tests for this and perf_pmu__parse_cleanup
> > > call to parse_events_terms, so the test gets properly cleaned up.
> > >
> > > Reported-by: Jin Yao<yao.jin@...ux.intel.com>
> > > Signed-off-by: Jiri Olsa<jolsa@...nel.org>
> > > ---
> > > v2 changes:
> > > - added comment to perf_pmu__test_parse_init
> >
> > Acked-by: Jin Yao <yao.jin@...ux.intel.com>
> >
> > Thanks
> > Jin Yao
>
> Also added with:
> Fixes: 3a6c51e4d66c ("perf parser: Add support to specify rXXX event with pmu")?
Thanks, applied.
- Arnaldo
Powered by blists - more mailing lists