| /linux/arch/arm64/include/asm/ |
| H A D | exception.h | 29 asmlinkage void __noreturn handle_bad_stack(struct pt_regs *regs); 31 asmlinkage void el1t_64_sync_handler(struct pt_regs *regs); 32 asmlinkage void el1t_64_irq_handler(struct pt_regs *regs); 33 asmlinkage void el1t_64_fiq_handler(struct pt_regs *regs); 34 asmlinkage void el1t_64_error_handler(struct pt_regs *regs); 36 asmlinkage void el1h_64_sync_handler(struct pt_regs *regs); 37 asmlinkage void el1h_64_irq_handler(struct pt_regs *regs); 38 asmlinkage void el1h_64_fiq_handler(struct pt_regs *regs); 39 asmlinkage void el1h_64_error_handler(struct pt_regs *regs); 41 asmlinkage void el0t_64_sync_handler(struct pt_regs *regs); [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | entry.h | 10 void handler_irq(int irq, struct pt_regs *regs); 14 void do_hw_interrupt(struct pt_regs *regs, unsigned long type); 15 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, 18 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, 20 void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, 22 void do_fpd_trap(struct pt_regs *regs, unsigned long pc, 24 void do_fpe_trap(struct pt_regs *regs, unsigned long pc, 26 void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, 28 void handle_watchpoint(struct pt_regs *regs, unsigned long pc, 30 void handle_reg_access(struct pt_regs *regs, unsigned long pc, [all …]
|
| /linux/arch/hexagon/kernel/ |
| H A D | kgdb.c | 20 { " r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, r00)}, 21 { " r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, r01)}, 22 { " r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, r02)}, 23 { " r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, r03)}, 24 { " r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, r04)}, 25 { " r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, r05)}, 26 { " r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, r06)}, 27 { " r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, r07)}, 28 { " r8", GDB_SIZEOF_REG, offsetof(struct pt_regs, r08)}, 29 { " r9", GDB_SIZEOF_REG, offsetof(struct pt_regs, r09)}, [all …]
|
| H A D | asm-offsets.c | 33 OFFSET(_PT_SYSCALL_NR, pt_regs, syscall_nr); in main() 34 OFFSET(_PT_GPUGP, pt_regs, gpugp); in main() 35 OFFSET(_PT_CS1CS0, pt_regs, cs1cs0); in main() 36 OFFSET(_PT_R3130, pt_regs, r3130); in main() 37 OFFSET(_PT_R2928, pt_regs, r2928); in main() 38 OFFSET(_PT_R2726, pt_regs, r2726); in main() 39 OFFSET(_PT_R2524, pt_regs, r2524); in main() 40 OFFSET(_PT_R2322, pt_regs, r2322); in main() 41 OFFSET(_PT_R2120, pt_regs, r2120); in main() 42 OFFSET(_PT_R1918, pt_regs, r1918); in main() [all …]
|
| /linux/arch/csky/kernel/ |
| H A D | asm-offsets.c | 33 DEFINE(PT_PC, offsetof(struct pt_regs, pc)); in main() 34 DEFINE(PT_ORIG_AO, offsetof(struct pt_regs, orig_a0)); in main() 35 DEFINE(PT_SR, offsetof(struct pt_regs, sr)); in main() 37 DEFINE(PT_A0, offsetof(struct pt_regs, a0)); in main() 38 DEFINE(PT_A1, offsetof(struct pt_regs, a1)); in main() 39 DEFINE(PT_A2, offsetof(struct pt_regs, a2)); in main() 40 DEFINE(PT_A3, offsetof(struct pt_regs, a3)); in main() 41 DEFINE(PT_REGS0, offsetof(struct pt_regs, regs[0])); in main() 42 DEFINE(PT_REGS1, offsetof(struct pt_regs, regs[1])); in main() 43 DEFINE(PT_REGS2, offsetof(struct pt_regs, regs[2])); in main() [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | kgdb.c | 24 { "x0", 8, offsetof(struct pt_regs, regs[0])}, 25 { "x1", 8, offsetof(struct pt_regs, regs[1])}, 26 { "x2", 8, offsetof(struct pt_regs, regs[2])}, 27 { "x3", 8, offsetof(struct pt_regs, regs[3])}, 28 { "x4", 8, offsetof(struct pt_regs, regs[4])}, 29 { "x5", 8, offsetof(struct pt_regs, regs[5])}, 30 { "x6", 8, offsetof(struct pt_regs, regs[6])}, 31 { "x7", 8, offsetof(struct pt_regs, regs[7])}, 32 { "x8", 8, offsetof(struct pt_regs, regs[8])}, 33 { "x9", 8, offsetof(struct pt_regs, regs[9])}, [all …]
|
| H A D | entry-common.c | 38 static noinstr irqentry_state_t enter_from_kernel_mode(struct pt_regs *regs) in enter_from_kernel_mode() 54 static void noinstr exit_to_kernel_mode(struct pt_regs *regs, in exit_to_kernel_mode() 66 static __always_inline void arm64_enter_from_user_mode(struct pt_regs *regs) in arm64_enter_from_user_mode() 78 static __always_inline void arm64_exit_to_user_mode(struct pt_regs *regs) in arm64_exit_to_user_mode() 87 asmlinkage void noinstr asm_exit_to_user_mode(struct pt_regs *regs) in asm_exit_to_user_mode() 97 static noinstr irqentry_state_t arm64_enter_el1_dbg(struct pt_regs *regs) in arm64_enter_el1_dbg() 116 static void noinstr arm64_exit_el1_dbg(struct pt_regs *regs, in arm64_exit_el1_dbg() 129 static void do_interrupt_handler(struct pt_regs *regs, in do_interrupt_handler() 130 void (*handler)(struct pt_regs *)) in do_interrupt_handler() argument 132 struct pt_regs *old_regs = set_irq_regs(regs); in do_interrupt_handler() [all …]
|
| /linux/arch/microblaze/kernel/ |
| H A D | asm-offsets.c | 25 DEFINE(PT_SIZE, sizeof(struct pt_regs)); in main() 26 DEFINE(PT_MSR, offsetof(struct pt_regs, msr)); in main() 27 DEFINE(PT_EAR, offsetof(struct pt_regs, ear)); in main() 28 DEFINE(PT_ESR, offsetof(struct pt_regs, esr)); in main() 29 DEFINE(PT_FSR, offsetof(struct pt_regs, fsr)); in main() 30 DEFINE(PT_PC, offsetof(struct pt_regs, pc)); in main() 31 DEFINE(PT_R0, offsetof(struct pt_regs, r0)); in main() 32 DEFINE(PT_R1, offsetof(struct pt_regs, r1)); in main() 33 DEFINE(PT_R2, offsetof(struct pt_regs, r2)); in main() 34 DEFINE(PT_R3, offsetof(struct pt_regs, r3)); in main() [all …]
|
| /linux/arch/parisc/kernel/ |
| H A D | asm-offsets.c | 136 DEFINE(PT_PSW, offsetof(struct pt_regs, gr[ 0])); in main() 137 DEFINE(PT_GR1, offsetof(struct pt_regs, gr[ 1])); in main() 138 DEFINE(PT_GR2, offsetof(struct pt_regs, gr[ 2])); in main() 139 DEFINE(PT_GR3, offsetof(struct pt_regs, gr[ 3])); in main() 140 DEFINE(PT_GR4, offsetof(struct pt_regs, gr[ 4])); in main() 141 DEFINE(PT_GR5, offsetof(struct pt_regs, gr[ 5])); in main() 142 DEFINE(PT_GR6, offsetof(struct pt_regs, gr[ 6])); in main() 143 DEFINE(PT_GR7, offsetof(struct pt_regs, gr[ 7])); in main() 144 DEFINE(PT_GR8, offsetof(struct pt_regs, gr[ 8])); in main() 145 DEFINE(PT_GR9, offsetof(struct pt_regs, gr[ 9])); in main() [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | traps.h | 18 void mips_set_be_handler(int (*handler)(struct pt_regs *reg, int is_fixup)); 42 asmlinkage void do_ade(struct pt_regs *regs); 43 asmlinkage void do_be(struct pt_regs *regs); 44 asmlinkage void do_ov(struct pt_regs *regs); 45 asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31); 46 asmlinkage void do_bp(struct pt_regs *regs); 47 asmlinkage void do_tr(struct pt_regs *regs); 48 asmlinkage void do_ri(struct pt_regs *regs); 49 asmlinkage void do_cpu(struct pt_regs *regs); 50 asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr); [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | ptrace.h | 28 struct pt_regs struct 125 #define STACK_USER_INT_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_MIN_SIZE + 16) 128 #define STACK_SWITCH_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_MIN_SIZE + 16) 137 #define STACK_USER_INT_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_MIN_SIZE) 140 #define STACK_SWITCH_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_MIN_SIZE) 154 #define STACK_USER_INT_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_MIN_SIZE) 157 #define STACK_SWITCH_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_MIN_SIZE) 172 extern unsigned long profile_pc(struct pt_regs *regs); 177 long do_syscall_trace_enter(struct pt_regs *regs); 178 void do_syscall_trace_leave(struct pt_regs *regs); [all …]
|
| H A D | debug.h | 10 struct pt_regs; 14 extern int (*__debugger)(struct pt_regs *regs); 15 extern int (*__debugger_ipi)(struct pt_regs *regs); 16 extern int (*__debugger_bpt)(struct pt_regs *regs); 17 extern int (*__debugger_sstep)(struct pt_regs *regs); 18 extern int (*__debugger_iabr_match)(struct pt_regs *regs); 19 extern int (*__debugger_break_match)(struct pt_regs *regs); 20 extern int (*__debugger_fault_handler)(struct pt_regs *regs); 23 static inline int __NAME(struct pt_regs *regs) \ 39 static inline int debugger(struct pt_regs *regs) { return 0; } [all …]
|
| H A D | interrupt.h | 98 static inline bool is_implicit_soft_masked(struct pt_regs *regs) in is_implicit_soft_masked() 120 static inline bool is_implicit_soft_masked(struct pt_regs *regs) in is_implicit_soft_masked() 130 static inline void nap_adjust_return(struct pt_regs *regs) in nap_adjust_return() 153 static inline void interrupt_enter_prepare(struct pt_regs *regs) in interrupt_enter_prepare() 218 static inline void interrupt_exit_prepare(struct pt_regs *regs) in interrupt_exit_prepare() 222 static inline void interrupt_async_enter_prepare(struct pt_regs *regs) in interrupt_async_enter_prepare() 241 static inline void interrupt_async_exit_prepare(struct pt_regs *regs) in interrupt_async_exit_prepare() 264 static inline bool nmi_disables_ftrace(struct pt_regs *regs) in nmi_disables_ftrace() 281 static inline void interrupt_nmi_enter_prepare(struct pt_regs *regs, struct interrupt_nmi_state *st… in interrupt_nmi_enter_prepare() 351 static inline void interrupt_nmi_exit_prepare(struct pt_regs *regs, struct interrupt_nmi_state *sta… in interrupt_nmi_exit_prepare() [all …]
|
| /linux/arch/arc/kernel/ |
| H A D | asm-offsets.c | 49 DEFINE(PT_status32, offsetof(struct pt_regs, status32)); in main() 50 DEFINE(PT_event, offsetof(struct pt_regs, ecr)); in main() 51 DEFINE(PT_bta, offsetof(struct pt_regs, bta)); in main() 52 DEFINE(PT_sp, offsetof(struct pt_regs, sp)); in main() 53 DEFINE(PT_r0, offsetof(struct pt_regs, r0)); in main() 54 DEFINE(PT_r1, offsetof(struct pt_regs, r1)); in main() 55 DEFINE(PT_r2, offsetof(struct pt_regs, r2)); in main() 56 DEFINE(PT_r3, offsetof(struct pt_regs, r3)); in main() 57 DEFINE(PT_r4, offsetof(struct pt_regs, r4)); in main() 58 DEFINE(PT_r5, offsetof(struct pt_regs, r5)); in main() [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | ptrace.h | 18 struct pt_regs { struct 36 static __always_inline bool regs_irqs_disabled(struct pt_regs *regs) in regs_irqs_disabled() argument 41 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer() 51 static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) in instruction_pointer_set() 58 #define MAX_REG_OFFSET (offsetof(struct pt_regs, __last) - sizeof(unsigned long)) 69 static inline unsigned long regs_get_register(struct pt_regs *regs, unsigned int offset) in regs_get_register() 85 static inline int regs_within_kernel_stack(struct pt_regs *regs, unsigned long addr) in regs_within_kernel_stack() 100 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n) in regs_get_kernel_stack_nth() 124 static inline unsigned long regs_get_kernel_argument(struct pt_regs *regs, in regs_get_kernel_argument() 129 offsetof(struct pt_regs, regs[4]), in regs_get_kernel_argument() [all …]
|
| H A D | exception.h | 11 void show_registers(struct pt_regs *regs); 14 asmlinkage void noinstr do_ade(struct pt_regs *regs); 15 asmlinkage void noinstr do_ale(struct pt_regs *regs); 16 asmlinkage void noinstr do_bce(struct pt_regs *regs); 17 asmlinkage void noinstr do_bp(struct pt_regs *regs); 18 asmlinkage void noinstr do_ri(struct pt_regs *regs); 19 asmlinkage void noinstr do_fpu(struct pt_regs *regs); 20 asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr); 21 asmlinkage void noinstr do_lsx(struct pt_regs *regs); 22 asmlinkage void noinstr do_lasx(struct pt_regs *regs); [all …]
|
| /linux/arch/nios2/kernel/ |
| H A D | asm-offsets.c | 27 OFFSET(PT_ORIG_R2, pt_regs, orig_r2); in main() 28 OFFSET(PT_ORIG_R7, pt_regs, orig_r7); in main() 30 OFFSET(PT_R1, pt_regs, r1); in main() 31 OFFSET(PT_R2, pt_regs, r2); in main() 32 OFFSET(PT_R3, pt_regs, r3); in main() 33 OFFSET(PT_R4, pt_regs, r4); in main() 34 OFFSET(PT_R5, pt_regs, r5); in main() 35 OFFSET(PT_R6, pt_regs, r6); in main() 36 OFFSET(PT_R7, pt_regs, r7); in main() 37 OFFSET(PT_R8, pt_regs, r8); in main() [all …]
|
| H A D | kgdb.c | 21 { "at", GDB_SIZEOF_REG, offsetof(struct pt_regs, r1) }, 22 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, r2) }, 23 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, r3) }, 24 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, r4) }, 25 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, r5) }, 26 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, r6) }, 27 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, r7) }, 28 { "r8", GDB_SIZEOF_REG, offsetof(struct pt_regs, r8) }, 29 { "r9", GDB_SIZEOF_REG, offsetof(struct pt_regs, r9) }, 30 { "r10", GDB_SIZEOF_REG, offsetof(struct pt_regs, r10) }, [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | kgdb.c | 56 { "zero", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[0]) }, 57 { "at", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[1]) }, 58 { "v0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[2]) }, 59 { "v1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[3]) }, 60 { "a0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[4]) }, 61 { "a1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[5]) }, 62 { "a2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[6]) }, 63 { "a3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[7]) }, 64 { "t0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[8]) }, 65 { "t1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[9]) }, [all …]
|
| /linux/arch/xtensa/kernel/ |
| H A D | asm-offsets.c | 34 DEFINE(PT_PC, offsetof (struct pt_regs, pc)); in main() 35 DEFINE(PT_PS, offsetof (struct pt_regs, ps)); in main() 36 DEFINE(PT_DEPC, offsetof (struct pt_regs, depc)); in main() 37 DEFINE(PT_EXCCAUSE, offsetof (struct pt_regs, exccause)); in main() 38 DEFINE(PT_EXCVADDR, offsetof (struct pt_regs, excvaddr)); in main() 39 DEFINE(PT_DEBUGCAUSE, offsetof (struct pt_regs, debugcause)); in main() 40 DEFINE(PT_WMASK, offsetof (struct pt_regs, wmask)); in main() 41 DEFINE(PT_LBEG, offsetof (struct pt_regs, lbeg)); in main() 42 DEFINE(PT_LEND, offsetof (struct pt_regs, lend)); in main() 43 DEFINE(PT_LCOUNT, offsetof (struct pt_regs, lcount)); in main() [all …]
|
| /linux/arch/riscv/include/asm/ |
| H A D | ptrace.h | 15 struct pt_regs { struct 69 #define MAX_REG_OFFSET offsetof(struct pt_regs, orig_a0) argument 72 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer() 76 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() 85 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer() 89 static inline void user_stack_pointer_set(struct pt_regs *regs, in user_stack_pointer_set() 96 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer() 102 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer() 106 static inline void frame_pointer_set(struct pt_regs *regs, in frame_pointer_set() 112 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value() [all …]
|
| /linux/arch/riscv/kernel/ |
| H A D | kgdb.c | 37 static int get_step_address(struct pt_regs *regs, unsigned long *next_addr) in get_step_address() 120 static int do_single_step(struct pt_regs *regs) in do_single_step() 154 static void undo_single_step(struct pt_regs *regs) in undo_single_step() 170 {DBG_REG_RA, GDB_SIZEOF_REG, offsetof(struct pt_regs, ra)}, 171 {DBG_REG_SP, GDB_SIZEOF_REG, offsetof(struct pt_regs, sp)}, 172 {DBG_REG_GP, GDB_SIZEOF_REG, offsetof(struct pt_regs, gp)}, 173 {DBG_REG_TP, GDB_SIZEOF_REG, offsetof(struct pt_regs, tp)}, 174 {DBG_REG_T0, GDB_SIZEOF_REG, offsetof(struct pt_regs, t0)}, 175 {DBG_REG_T1, GDB_SIZEOF_REG, offsetof(struct pt_regs, t1)}, 176 {DBG_REG_T2, GDB_SIZEOF_REG, offsetof(struct pt_regs, t2)}, [all …]
|
| /linux/arch/csky/include/asm/ |
| H A D | ptrace.h | 19 ({ (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1; }) 28 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() 35 #define MAX_REG_OFFSET offsetof(struct pt_regs, dcsr) 37 #define MAX_REG_OFFSET offsetof(struct pt_regs, regs[9]) 40 static inline bool in_syscall(struct pt_regs const *regs) in in_syscall() 45 static inline void forget_syscall(struct pt_regs *regs) in forget_syscall() 50 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value() 55 static inline void regs_set_return_value(struct pt_regs *regs, in regs_set_return_value() 62 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer() 67 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer() [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | kgdb.c | 47 static short *get_step_address(struct pt_regs *linux_regs) in get_step_address() 138 static void do_single_step(struct pt_regs *linux_regs) in do_single_step() 155 static void undo_single_step(struct pt_regs *linux_regs) in undo_single_step() 168 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[0]) }, 169 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[1]) }, 170 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[2]) }, 171 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[3]) }, 172 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[4]) }, 173 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[5]) }, 174 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[6]) }, [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | kgdb.c | 49 { "ax", 4, offsetof(struct pt_regs, ax) }, 50 { "cx", 4, offsetof(struct pt_regs, cx) }, 51 { "dx", 4, offsetof(struct pt_regs, dx) }, 52 { "bx", 4, offsetof(struct pt_regs, bx) }, 53 { "sp", 4, offsetof(struct pt_regs, sp) }, 54 { "bp", 4, offsetof(struct pt_regs, bp) }, 55 { "si", 4, offsetof(struct pt_regs, si) }, 56 { "di", 4, offsetof(struct pt_regs, di) }, 57 { "ip", 4, offsetof(struct pt_regs, ip) }, 58 { "flags", 4, offsetof(struct pt_regs, flags) }, [all …]
|