Ian Munsie | cd932c5 | 2010-04-20 16:58:32 +1000 | [diff] [blame] | 1 | #ifndef _PERF_DWARF_REGS_H_ |
| 2 | #define _PERF_DWARF_REGS_H_ |
| 3 | |
Ingo Molnar | 89fe808 | 2013-09-30 12:07:11 +0200 | [diff] [blame] | 4 | #ifdef HAVE_DWARF_SUPPORT |
Ian Munsie | cd932c5 | 2010-04-20 16:58:32 +1000 | [diff] [blame] | 5 | const char *get_arch_regstr(unsigned int n); |
Masami Hiramatsu | 293d5b4 | 2016-08-26 01:24:57 +0900 | [diff] [blame] | 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); |
Ian Munsie | cd932c5 | 2010-04-20 16:58:32 +1000 | [diff] [blame] | 12 | #endif |
| 13 | |
Wang Nan | 63ab024 | 2015-09-14 23:02:49 -0300 | [diff] [blame] | 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 |
Ian Munsie | cd932c5 | 2010-04-20 16:58:32 +1000 | [diff] [blame] | 22 | #endif |