• Namhyung Kim's avatar
    perf dwarf-regs: Add get_dwarf_regnum() · 3eee6067
    Namhyung Kim authored
    The get_dwarf_regnum() returns a DWARF register number from a register
    name string according to the psABI.  Also add two pseudo encodings of
    DWARF_REG_PC which is a register that are used by PC-relative addressing
    and DWARF_REG_FB which is a frame base register.  They need to be
    handled in a special way.
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: linux-toolchains@vger.kernel.org
    Cc: linux-trace-devel@vger.kernel.org
    Link: https://lore.kernel.org/r/20231213001323.718046-3-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    3eee6067
dwarf-regs.h 1.15 KB