/Linux-v6.6/arch/mips/kernel/ |
D | kgdb.c | 54 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = variable 137 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_set_reg() 138 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 139 dbg_reg_def[regno].size); in dbg_set_reg() 140 } else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) { in dbg_set_reg() 147 dbg_reg_def[regno].size); in dbg_set_reg() 153 fp_reg = dbg_reg_def[regno].offset; in dbg_set_reg() 155 dbg_reg_def[regno].size); in dbg_set_reg() 170 if (dbg_reg_def[regno].offset != -1 && regno < 38) { in dbg_get_reg() 172 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() [all …]
|
/Linux-v6.6/arch/nios2/kernel/ |
D | kgdb.c | 18 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = variable 76 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 77 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 78 dbg_reg_def[regno].size); in dbg_get_reg() 80 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 82 return dbg_reg_def[regno].name; in dbg_get_reg() 90 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() 91 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 92 dbg_reg_def[regno].size); in dbg_set_reg()
|
/Linux-v6.6/arch/arm/kernel/ |
D | kgdb.c | 21 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = variable 56 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 57 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 58 dbg_reg_def[regno].size); in dbg_get_reg() 60 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 61 return dbg_reg_def[regno].name; in dbg_get_reg() 69 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() 70 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 71 dbg_reg_def[regno].size); in dbg_set_reg()
|
/Linux-v6.6/arch/arm64/kernel/ |
D | kgdb.c | 23 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = { variable 109 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 110 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 111 dbg_reg_def[regno].size); in dbg_get_reg() 113 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 114 return dbg_reg_def[regno].name; in dbg_get_reg() 122 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() 123 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 124 dbg_reg_def[regno].size); in dbg_set_reg()
|
/Linux-v6.6/arch/sh/kernel/ |
D | kgdb.c | 167 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = { variable 198 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() 199 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 200 dbg_reg_def[regno].size); in dbg_set_reg() 210 if (dbg_reg_def[regno].size != -1) in dbg_get_reg() 211 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 212 dbg_reg_def[regno].size); in dbg_get_reg() 220 return dbg_reg_def[regno].name; in dbg_get_reg()
|
/Linux-v6.6/arch/powerpc/kernel/ |
D | kgdb.c | 243 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = variable 327 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 328 dbg_reg_def[regno].size); in dbg_get_reg() 335 dbg_reg_def[regno].size); in dbg_get_reg() 338 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 342 return dbg_reg_def[regno].name; in dbg_get_reg() 353 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 354 dbg_reg_def[regno].size); in dbg_set_reg() 360 dbg_reg_def[regno].size); in dbg_set_reg()
|
/Linux-v6.6/arch/riscv/kernel/ |
D | kgdb.c | 168 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = { variable 212 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 213 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 214 dbg_reg_def[regno].size); in dbg_get_reg() 216 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg() 217 return dbg_reg_def[regno].name; in dbg_get_reg() 225 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() 226 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 227 dbg_reg_def[regno].size); in dbg_set_reg()
|
/Linux-v6.6/arch/hexagon/kernel/ |
D | kgdb.c | 19 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = { variable 84 dbg_reg_def[regno].offset)); in dbg_get_reg() 86 return dbg_reg_def[regno].name; in dbg_get_reg() 94 *((unsigned long *) ((void *)regs + dbg_reg_def[regno].offset)) = in dbg_set_reg()
|
/Linux-v6.6/arch/x86/kernel/ |
D | kgdb.c | 46 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = variable 100 if (dbg_reg_def[regno].offset != -1) in dbg_set_reg() 101 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg() 102 dbg_reg_def[regno].size); in dbg_set_reg() 115 if (dbg_reg_def[regno].offset != -1) in dbg_get_reg() 116 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg() 117 dbg_reg_def[regno].size); in dbg_get_reg() 127 return dbg_reg_def[regno].name; in dbg_get_reg()
|
/Linux-v6.6/arch/loongarch/kernel/ |
D | kgdb.c | 28 struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = { variable 114 reg_offset = dbg_reg_def[regno].offset; in dbg_get_reg() 115 reg_size = dbg_reg_def[regno].size; in dbg_get_reg() 147 return dbg_reg_def[regno].name; in dbg_get_reg() 157 reg_offset = dbg_reg_def[regno].offset; in dbg_set_reg() 158 reg_size = dbg_reg_def[regno].size; in dbg_set_reg()
|
/Linux-v6.6/kernel/debug/ |
D | gdbstub.c | 347 idx += dbg_reg_def[i].size; in pt_regs_to_gdb_regs() 359 idx += dbg_reg_def[i].size; in gdb_regs_to_pt_regs() 590 offset += dbg_reg_def[i].size; in gdb_hex_reg_helper() 592 dbg_reg_def[i].size); in gdb_hex_reg_helper()
|
/Linux-v6.6/include/linux/ |
D | kgdb.h | 93 extern struct dbg_reg_def_t dbg_reg_def[];
|
/Linux-v6.6/kernel/debug/kdb/ |
D | kdb_main.c | 1898 rsize = dbg_reg_def[i].size * 2; in kdb_rd() 1901 if (len + strlen(dbg_reg_def[i].name) + 4 + rsize > 80) { in kdb_rd() 1907 switch(dbg_reg_def[i].size * 8) { in kdb_rd() 1933 len += kdb_printf("%s: ??", dbg_reg_def[i].name); in kdb_rd() 1982 if (strcmp(rname, dbg_reg_def[i].name) == 0) { in kdb_rm() 1988 switch(dbg_reg_def[i].size * 8) { in kdb_rm()
|