Re: [PATCH] perf annotate: Skip DSOs not found

From: Arnaldo Carvalho de Melo
Date: Thu Apr 11 2024 - 07:05:06 EST


On Wed, Apr 10, 2024 at 12:14:37PM -0700, Ian Rogers wrote:
> On Wed, Apr 10, 2024 at 11:51 AM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> >
> > In some data file, I see the following messages repeated. It seems it
> > doesn't have DSOs in the system and the dso->binary_type is set to
> > DSO_BINARY_TYPE__NOT_FOUND. Let's skip them to avoid the followings.
> >
> > No output from objdump --start-address=0x0000000000000000 --stop-address=0x00000000000000d4 -d --no-show-raw-insn -C "$1"
> > Error running objdump --start-address=0x0000000000000000 --stop-address=0x0000000000000631 -d --no-show-raw-insn -C "$1"
> > ...
> >
> > Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
>
> Perhaps: Closes:
> https://lore.kernel.org/linux-perf-users/15e1a2847b8cebab4de57fc68e033086aa6980ce.camel@xxxxxxxxx/

I added:

Closes: https://lore.kernel.org/linux-perf-users/15e1a2847b8cebab4de57fc68e033086aa6980ce.camel@xxxxxxxxx/
Reported-by: Konstantin Kharlamov <Hi-Angel@xxxxxxxxx>
Reviewed-by: Ian Rogers <irogers@xxxxxxxxxx>
Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
Tested-by: Konstantin Kharlamov <Hi-Angel@xxxxxxxxx>

> Reviewed-by: Ian Rogers <irogers@xxxxxxxxxx>

Thanks,

- Arnaldo