1 #ifndef _PERF_DWARF_REGS_H_ 2 #define _PERF_DWARF_REGS_H_ 3 4 #ifdef HAVE_DWARF_SUPPORT 5 const char *get_arch_regstr(unsigned int n); 6 /* 7 * get_dwarf_regstr - Returns ftrace register string from DWARF regnum 8 * n: DWARF register number 9 * machine: ELF machine signature (EM_*) 10 */ 11 const char *get_dwarf_regstr(unsigned int n, unsigned int machine); 12 #endif 13 14 #ifdef HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET 15 /* 16 * Arch should support fetching the offset of a register in pt_regs 17 * by its name. See kernel's regs_query_register_offset in 18 * arch/xxx/kernel/ptrace.c. 19 */ 20 int regs_query_register_offset(const char *name); 21 #endif 22 #endif 23