Re: [PATCH v7 1/4] perf report: Support LLVM for addr2line()

From: Arnaldo Carvalho de Melo
Date: Wed May 29 2024 - 09:53:11 EST


On Tue, May 28, 2024 at 08:56:47PM -0700, Namhyung Kim wrote:
> On Sun, May 26, 2024 at 11:22 AM Steinar H. Gunderson <sesse@xxxxxxxxxx> wrote:
> > +#elif defined(HAVE_LIBBFD_SUPPORT)

> Hmm.. it's unfortunate that we have only one addr2line
> implementation at a time. Maybe we can do the same thing
> like in annotate with objdump so that it can fallback to another
> method when failing. But it'd require more changes beyond
> this work and I'm not sure if it's really worth it.

Right, I think we shouldn't delay processing these patches because of
that, we can do it as follow up patches, both for fallbacks in case we
can detect problems like we did with capstone -> objdump disasm and also
to be able to compare outputs in 'perf test' shell scripts, discounting
known/expected minor differences.

- Arnaldo