Re: [PATCH v4 1/3] perf report: Support LLVM for addr2line()

From: Steinar H. Gunderson
Date: Thu May 23 2024 - 05:32:28 EST


On Wed, May 22, 2024 at 01:46:35PM -0700, Namhyung Kim wrote:
> Great! Personally I found libbfd is hard to read (and use). Hope
> that libllvm is better in that pov. I'm not sure if we all want to
> remove the libbfd dependency but at least we can select one of
> them at build time. Maybe the same for libelf and libdw(fl) too.

I've never used either before, but I found libllvm pretty
straightforward. The C/C++ interop is a bit painful, though.
(The disassembler has a C interface, but addr2line does not,
from what I could see.)

> Having symbol enumeration and demangling with LLVM would
> be nice but not required to merge this work. I'll take a deeper
> look next week. Please post v5.

Posted.

/* Steinar */