Re: [PATCH] perf tests attr: Support Topdown metrics events
From: Arnaldo Carvalho de Melo
Date: Tue Oct 05 2021 - 13:57:04 EST
Em Mon, Oct 04, 2021 at 05:42:56PM +0200, Jiri Olsa escreveu:
> On Thu, Sep 30, 2021 at 12:52:46PM -0700, kan.liang@xxxxxxxxxxxxxxx wrote:
> > From: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>
> >
> > The Topdown metrics events were added as perf stat default events since
> > commit 42641d6f4d15 ("perf stat: Add Topdown metrics events as default
> > events"). However, the perf attr tests were not updated accordingly.
> >
> > The perf attr test fails on the platform which supports Topdown metrics.
> > perf test 17
> > 17: Setup struct perf_event_attr :FAILED!
> >
> > Add Topdown metrics events into perf attr test cases. Make them optional
> > since they are only available on newer platforms.
> >
> > Reported-by: kernel test robot <oliver.sang@xxxxxxxxx>
> > Fixes: 42641d6f4d15 ("perf stat: Add Topdown metrics events as default events")
> > Signed-off-by: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>
>
> Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>
Thanks, applied.
- Arnaldo