Re: [PATCH v2 17/31] perf dwarf-regs: Pass ELF flags to get_dwarf_regstr
From: Namhyung Kim
Date: Thu Nov 07 2024 - 14:25:12 EST
On Mon, Oct 07, 2024 at 08:05:23AM -0700, Ian Rogers wrote:
> On Mon, Oct 7, 2024 at 1:09 AM Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
> >
> > On Sat, 5 Oct 2024 12:55:27 -0700
> > Ian Rogers <irogers@xxxxxxxxxx> wrote:
> >
> > > Pass a flags value as architectures like csky need the flags to
> > > determine the ABI variant.
> > >
> >
> > Same here. I need some examples of this chaneg.
>
> The code here was already using the ELF machine, so dwarf-regs.c
> functions would already support cross building. There is the addition
> of ELF flags as on csky the registers change depending on the ABI
> version in the ELF flags.
I think it's used by the probe-finder only which won't support
cross-arch environment. So probably no changes to users at this point.
Thanks,
Namhyung