Hello, On Tue, Mar 26, 2024 at 2:35 AM Tiezhu Yang <yangtie...@loongson.cn> wrote: > > Hi Athira and Namhyung, > > On 03/09/2024 03:25 PM, Athira Rajeev wrote: > > The function get_dwarf_regnum() returns a DWARF register number > > from a register name string. This calls arch specific function > > get_arch_regnum to return register number for corresponding arch. > > Add mappings for register name to register number in powerpc code: > > arch/powerpc/util/dwarf-regs.c > > > > Signed-off-by: Athira Rajeev <atraj...@linux.vnet.ibm.com> > > --- > > tools/perf/arch/powerpc/util/dwarf-regs.c | 29 +++++++++++++++++++++++ > > 1 file changed, 29 insertions(+) > > I found commit 3eee606757ad ("perf dwarf-regs: Add get_dwarf_regnum()") > for x86, would you be able to share how to test these changes? What is > the difference with and without the patches?
Hmm.. I guess it won't work well without the patch. This is needed to map register numbers (from objdump) to what DWARF can understand (IOW they use different numbers). Thanks, Namhyung