2010-04-20 14:58:32 +08:00
|
|
|
#ifndef _PERF_DWARF_REGS_H_
|
|
|
|
#define _PERF_DWARF_REGS_H_
|
|
|
|
|
2013-09-30 18:07:11 +08:00
|
|
|
#ifdef HAVE_DWARF_SUPPORT
|
2010-04-20 14:58:32 +08:00
|
|
|
const char *get_arch_regstr(unsigned int n);
|
|
|
|
#endif
|
|
|
|
|
2015-09-15 10:02:49 +08:00
|
|
|
#ifdef HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET
|
|
|
|
/*
|
|
|
|
* Arch should support fetching the offset of a register in pt_regs
|
|
|
|
* by its name. See kernel's regs_query_register_offset in
|
|
|
|
* arch/xxx/kernel/ptrace.c.
|
|
|
|
*/
|
|
|
|
int regs_query_register_offset(const char *name);
|
|
|
|
#endif
|
2010-04-20 14:58:32 +08:00
|
|
|
#endif
|