blob: 43bfd8da7919a68e41ab98032221edad25f1cd9c [file] [log] [blame]
Ian Munsiecd932c52010-04-20 16:58:32 +10001#ifndef _PERF_DWARF_REGS_H_
2#define _PERF_DWARF_REGS_H_
3
Ingo Molnar89fe8082013-09-30 12:07:11 +02004#ifdef HAVE_DWARF_SUPPORT
Ian Munsiecd932c52010-04-20 16:58:32 +10005const char *get_arch_regstr(unsigned int n);
Masami Hiramatsu293d5b42016-08-26 01:24:57 +09006/*
7 * get_dwarf_regstr - Returns ftrace register string from DWARF regnum
8 * n: DWARF register number
9 * machine: ELF machine signature (EM_*)
10 */
11const char *get_dwarf_regstr(unsigned int n, unsigned int machine);
Ian Munsiecd932c52010-04-20 16:58:32 +100012#endif
13
Wang Nan63ab0242015-09-14 23:02:49 -030014#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 */
20int regs_query_register_offset(const char *name);
21#endif
Ian Munsiecd932c52010-04-20 16:58:32 +100022#endif