16 #include <linux/ptrace.h> 17 #include <linux/kernel.h> 18 #include <linux/stringify.h> 27 #define REG_DWARFNUM_NAME(r, num) \ 28 {.name = __stringify(%)__stringify(r), .dwarfnum = num, \ 29 .ptregs_offset = offsetof(struct pt_regs, r)} 30 #define GPR_DWARFNUM_NAME(num) \ 31 {.name = __stringify(%gpr##num), .dwarfnum = num, \ 32 .ptregs_offset = offsetof(struct pt_regs, gpr[num])} 33 #define REG_DWARFNUM_END {.name = NULL, .dwarfnum = 0, .ptregs_offset = 0} 92 for (roff = regdwarfnum_table; roff->
name != NULL; roff++)
101 for (roff = regdwarfnum_table; roff->
name != NULL; roff++)
102 if (!strcmp(roff->
name, name))
unsigned int ptregs_offset
static const struct pt_regs_dwarfnum regdwarfnum_table[]
int regs_query_register_offset(const char *name)
#define REG_DWARFNUM_NAME(r, num)
#define GPR_DWARFNUM_NAME(num)
const char * get_arch_regstr(unsigned int n)