Messages in this thread | | | From | Namhyung Kim <> | Date | Tue, 7 Nov 2023 21:28:19 -0800 | Subject | Re: [PATCH 31/48] perf dwarf-aux: Add die_get_cfa() |
| |
On Mon, Nov 6, 2023 at 4:50 PM Masami Hiramatsu <mhiramat@kernel.org> wrote: > > On Wed, 11 Oct 2023 20:50:54 -0700 > Namhyung Kim <namhyung@kernel.org> wrote: > > > The die_get_cfa() is to get frame base register and offset at the given > > instruction address (pc). This info will be used to locate stack > > variables which have location expression using DW_OP_fbreg. > > > > In the util/probe-finder.c, I added the elfutils version checker > > #if _ELFUTILS_PREREQ(0, 142) > > for CFI related code, in commit 7752f1b096e1 ("perf probe: Don't > compile CFI related code if elfutils is old"). Maybe we'd better to have > a config of HAVE_DWARF_CFI_SUPPORT for this.
Sounds like a good idea. Will add.
Thanks, Namhyung
| |