[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210902174851.GB1078000@p14s>
Date: Thu, 2 Sep 2021 11:48:51 -0600
From: Mathieu Poirier <mathieu.poirier@...aro.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: Leo Yan <leo.yan@...aro.org>, James Clark <james.clark@....com>,
coresight@...ts.linaro.org, linux-perf-users@...r.kernel.org,
mike.leach@...aro.org, suzuki.poulose@....com,
John Garry <john.garry@...wei.com>,
Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 9/9] perf cs-etm: Show a warning for an unknown magic
number
Hi Arnaldo,
On Wed, Sep 01, 2021 at 12:54:34PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, Aug 24, 2021 at 04:36:15PM +0800, Leo Yan escreveu:
> > On Fri, Aug 06, 2021 at 02:41:09PM +0100, James Clark wrote:
> > > Currently perf reports "Cannot allocate memory" which isn't very helpful
> > > for a potentially user facing issue. If we add a new magic number in
> > > the future, perf will be able to report unrecognised magic numbers.
> > >
> > > Signed-off-by: James Clark <james.clark@....com>
> >
> > Reviewed-by: Leo Yan <leo.yan@...aro.org>
>
> Applies cleanly to my tree, test building it now, holler if there is
> something that prevents it from being merged.
Have you already merged this?
If so than let it be. Otherwise please hold off as I'd like to take a look,
something I intend on doing next week.
Thanks,
Mathieu
> - Arnaldo
>
> > > ---
> > > tools/perf/util/cs-etm.c | 5 +++++
> > > 1 file changed, 5 insertions(+)
> > >
> > > diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
> > > index 788ad5a099f6..5b276bdb96a6 100644
> > > --- a/tools/perf/util/cs-etm.c
> > > +++ b/tools/perf/util/cs-etm.c
> > > @@ -2973,6 +2973,11 @@ int cs_etm__process_auxtrace_info(union perf_event *event,
> > >
> > > /* ETE shares first part of metadata with ETMv4 */
> > > trcidr_idx = CS_ETMV4_TRCTRACEIDR;
> > > + } else {
> > > + ui__error("CS ETM Trace: Unrecognised magic number %#"PRIx64". File could be from a newer version of perf.\n",
> > > + ptr[i]);
> > > + err = -EINVAL;
> > > + goto err_free_metadata;
> > > }
> > >
> > > if (!metadata[j]) {
> > > --
> > > 2.28.0
> > >
>
> --
>
> - Arnaldo
Powered by blists - more mailing lists