26 #include <linux/ptrace.h> 27 #include <linux/kernel.h> 56 #define REG_OFFSET_END {.name = NULL, .offset = 0} 59 # define REG_OFFSET_NAME_64(n, r) {.name = n, .offset = offsetof(struct pt_regs, r)} 60 # define REG_OFFSET_NAME_32(n, r) {.name = n, .offset = -1} 62 # define REG_OFFSET_NAME_64(n, r) {.name = n, .offset = -1} 63 # define REG_OFFSET_NAME_32(n, r) {.name = n, .offset = offsetof(struct pt_regs, r)} 80 #define regoffset_table x86_32_regoffset_table 102 #define regoffset_table x86_64_regoffset_table 106 #define ARCH_MAX_REGS ((sizeof(regoffset_table) / sizeof(regoffset_table[0])) - 1) 126 if (!strcmp(roff->
name, name))
#define REG_OFFSET_NAME_32(n, r)
int regs_query_register_offset(const char *name)
static const struct pt_regs_offset x86_32_regoffset_table[]
#define REG_OFFSET_NAME_64(n, r)
const char * get_arch_regstr(unsigned int n)