/linux-6.6.21/arch/sparc/kernel/ |
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 …]
|
D | kernel.h | 18 asmlinkage long sparc_clone(struct pt_regs *regs); 19 asmlinkage long sparc_fork(struct pt_regs *regs); 20 asmlinkage long sparc_vfork(struct pt_regs *regs); 38 asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn); 39 int handle_popc(u32 insn, struct pt_regs *regs); 40 void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr); 41 void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr); 44 void __irq_entry smp_call_function_client(int irq, struct pt_regs *regs); 45 void __irq_entry smp_call_function_single_client(int irq, struct pt_regs *regs); 46 void __irq_entry smp_penguin_jailcell(int irq, struct pt_regs *regs); [all …]
|
/linux-6.6.21/arch/arm64/include/asm/ |
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-6.6.21/arch/hexagon/kernel/ |
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 …]
|
D | asm-offsets.c | 32 OFFSET(_PT_SYSCALL_NR, pt_regs, syscall_nr); in main() 33 OFFSET(_PT_GPUGP, pt_regs, gpugp); in main() 34 OFFSET(_PT_CS1CS0, pt_regs, cs1cs0); in main() 35 OFFSET(_PT_R3130, pt_regs, r3130); in main() 36 OFFSET(_PT_R2928, pt_regs, r2928); in main() 37 OFFSET(_PT_R2726, pt_regs, r2726); in main() 38 OFFSET(_PT_R2524, pt_regs, r2524); in main() 39 OFFSET(_PT_R2322, pt_regs, r2322); in main() 40 OFFSET(_PT_R2120, pt_regs, r2120); in main() 41 OFFSET(_PT_R1918, pt_regs, r1918); in main() [all …]
|
/linux-6.6.21/arch/csky/kernel/ |
D | asm-offsets.c | 32 DEFINE(PT_PC, offsetof(struct pt_regs, pc)); in main() 33 DEFINE(PT_ORIG_AO, offsetof(struct pt_regs, orig_a0)); in main() 34 DEFINE(PT_SR, offsetof(struct pt_regs, sr)); in main() 36 DEFINE(PT_A0, offsetof(struct pt_regs, a0)); in main() 37 DEFINE(PT_A1, offsetof(struct pt_regs, a1)); in main() 38 DEFINE(PT_A2, offsetof(struct pt_regs, a2)); in main() 39 DEFINE(PT_A3, offsetof(struct pt_regs, a3)); in main() 40 DEFINE(PT_REGS0, offsetof(struct pt_regs, regs[0])); in main() 41 DEFINE(PT_REGS1, offsetof(struct pt_regs, regs[1])); in main() 42 DEFINE(PT_REGS2, offsetof(struct pt_regs, regs[2])); in main() [all …]
|
/linux-6.6.21/arch/arm64/kernel/ |
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 …]
|
D | entry-common.c | 38 static __always_inline void __enter_from_kernel_mode(struct pt_regs *regs) in __enter_from_kernel_mode() 56 static void noinstr enter_from_kernel_mode(struct pt_regs *regs) in enter_from_kernel_mode() 71 static __always_inline void __exit_to_kernel_mode(struct pt_regs *regs) in __exit_to_kernel_mode() 91 static void noinstr exit_to_kernel_mode(struct pt_regs *regs) in exit_to_kernel_mode() 111 static __always_inline void enter_from_user_mode(struct pt_regs *regs) in enter_from_user_mode() 129 static __always_inline void exit_to_user_mode_prepare(struct pt_regs *regs) in exit_to_user_mode_prepare() 142 static __always_inline void exit_to_user_mode(struct pt_regs *regs) in exit_to_user_mode() 149 asmlinkage void noinstr asm_exit_to_user_mode(struct pt_regs *regs) in asm_exit_to_user_mode() 159 static void noinstr arm64_enter_nmi(struct pt_regs *regs) in arm64_enter_nmi() 177 static void noinstr arm64_exit_nmi(struct pt_regs *regs) in arm64_exit_nmi() [all …]
|
/linux-6.6.21/arch/x86/include/asm/ |
D | ptrace.h | 12 struct pt_regs { struct 59 struct pt_regs { struct 105 extern unsigned long profile_pc(struct pt_regs *regs); argument 108 convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs); 109 extern void send_sigtrap(struct pt_regs *regs, int error_code, int si_code); 112 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value() 117 static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc) in regs_set_return_value() 131 static __always_inline int user_mode(struct pt_regs *regs) in user_mode() 140 static __always_inline int v8086_mode(struct pt_regs *regs) in v8086_mode() 149 static inline bool user_64bit_mode(struct pt_regs *regs) in user_64bit_mode() [all …]
|
/linux-6.6.21/arch/microblaze/kernel/ |
D | asm-offsets.c | 24 DEFINE(PT_SIZE, sizeof(struct pt_regs)); in main() 25 DEFINE(PT_MSR, offsetof(struct pt_regs, msr)); in main() 26 DEFINE(PT_EAR, offsetof(struct pt_regs, ear)); in main() 27 DEFINE(PT_ESR, offsetof(struct pt_regs, esr)); in main() 28 DEFINE(PT_FSR, offsetof(struct pt_regs, fsr)); in main() 29 DEFINE(PT_PC, offsetof(struct pt_regs, pc)); in main() 30 DEFINE(PT_R0, offsetof(struct pt_regs, r0)); in main() 31 DEFINE(PT_R1, offsetof(struct pt_regs, r1)); in main() 32 DEFINE(PT_R2, offsetof(struct pt_regs, r2)); in main() 33 DEFINE(PT_R3, offsetof(struct pt_regs, r3)); in main() [all …]
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | kgdb.c | 113 int kgdb_skipexception(int exception, struct pt_regs *regs) in kgdb_skipexception() 118 static int kgdb_debugger_ipi(struct pt_regs *regs) in kgdb_debugger_ipi() 132 static int kgdb_debugger(struct pt_regs *regs) in kgdb_debugger() 138 static int kgdb_handle_breakpoint(struct pt_regs *regs) in kgdb_handle_breakpoint() 152 static int kgdb_singlestep(struct pt_regs *regs) in kgdb_singlestep() 162 static int kgdb_iabr_match(struct pt_regs *regs) in kgdb_iabr_match() 172 static int kgdb_break_match(struct pt_regs *regs) in kgdb_break_match() 193 struct pt_regs *regs = (struct pt_regs *)(p->thread.ksp + in sleeping_thread_to_gdb_regs() 245 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[0]) }, 246 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[1]) }, [all …]
|
/linux-6.6.21/arch/arc/kernel/ |
D | asm-offsets.c | 48 DEFINE(PT_status32, offsetof(struct pt_regs, status32)); in main() 49 DEFINE(PT_event, offsetof(struct pt_regs, ecr)); in main() 50 DEFINE(PT_bta, offsetof(struct pt_regs, bta)); in main() 51 DEFINE(PT_sp, offsetof(struct pt_regs, sp)); in main() 52 DEFINE(PT_r0, offsetof(struct pt_regs, r0)); in main() 53 DEFINE(PT_r1, offsetof(struct pt_regs, r1)); in main() 54 DEFINE(PT_r2, offsetof(struct pt_regs, r2)); in main() 55 DEFINE(PT_r3, offsetof(struct pt_regs, r3)); in main() 56 DEFINE(PT_r4, offsetof(struct pt_regs, r4)); in main() 57 DEFINE(PT_r5, offsetof(struct pt_regs, r5)); in main() [all …]
|
/linux-6.6.21/arch/nios2/kernel/ |
D | asm-offsets.c | 26 OFFSET(PT_ORIG_R2, pt_regs, orig_r2); in main() 27 OFFSET(PT_ORIG_R7, pt_regs, orig_r7); in main() 29 OFFSET(PT_R1, pt_regs, r1); in main() 30 OFFSET(PT_R2, pt_regs, r2); in main() 31 OFFSET(PT_R3, pt_regs, r3); in main() 32 OFFSET(PT_R4, pt_regs, r4); in main() 33 OFFSET(PT_R5, pt_regs, r5); in main() 34 OFFSET(PT_R6, pt_regs, r6); in main() 35 OFFSET(PT_R7, pt_regs, r7); in main() 36 OFFSET(PT_R8, pt_regs, r8); in main() [all …]
|
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-6.6.21/arch/loongarch/include/asm/ |
D | ptrace.h | 18 struct pt_regs { struct 36 static inline int 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)) 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 …]
|
D | exception.h | 9 void show_registers(struct pt_regs *regs); 12 asmlinkage void noinstr do_ade(struct pt_regs *regs); 13 asmlinkage void noinstr do_ale(struct pt_regs *regs); 14 asmlinkage void noinstr do_bce(struct pt_regs *regs); 15 asmlinkage void noinstr do_bp(struct pt_regs *regs); 16 asmlinkage void noinstr do_ri(struct pt_regs *regs); 17 asmlinkage void noinstr do_fpu(struct pt_regs *regs); 18 asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr); 19 asmlinkage void noinstr do_lsx(struct pt_regs *regs); 20 asmlinkage void noinstr do_lasx(struct pt_regs *regs); [all …]
|
/linux-6.6.21/arch/parisc/kernel/ |
D | asm-offsets.c | 135 DEFINE(PT_PSW, offsetof(struct pt_regs, gr[ 0])); in main() 136 DEFINE(PT_GR1, offsetof(struct pt_regs, gr[ 1])); in main() 137 DEFINE(PT_GR2, offsetof(struct pt_regs, gr[ 2])); in main() 138 DEFINE(PT_GR3, offsetof(struct pt_regs, gr[ 3])); in main() 139 DEFINE(PT_GR4, offsetof(struct pt_regs, gr[ 4])); in main() 140 DEFINE(PT_GR5, offsetof(struct pt_regs, gr[ 5])); in main() 141 DEFINE(PT_GR6, offsetof(struct pt_regs, gr[ 6])); in main() 142 DEFINE(PT_GR7, offsetof(struct pt_regs, gr[ 7])); in main() 143 DEFINE(PT_GR8, offsetof(struct pt_regs, gr[ 8])); in main() 144 DEFINE(PT_GR9, offsetof(struct pt_regs, gr[ 9])); in main() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ |
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 …]
|
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 …]
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | ptrace.h | 15 struct pt_regs { struct 67 #define MAX_REG_OFFSET offsetof(struct pt_regs, orig_a0) argument 70 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer() 74 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() 83 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer() 87 static inline void user_stack_pointer_set(struct pt_regs *regs, in user_stack_pointer_set() 94 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer() 100 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer() 104 static inline void frame_pointer_set(struct pt_regs *regs, in frame_pointer_set() 110 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value() [all …]
|
/linux-6.6.21/arch/mips/kernel/ |
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-6.6.21/arch/xtensa/kernel/ |
D | asm-offsets.c | 33 DEFINE(PT_PC, offsetof (struct pt_regs, pc)); in main() 34 DEFINE(PT_PS, offsetof (struct pt_regs, ps)); in main() 35 DEFINE(PT_DEPC, offsetof (struct pt_regs, depc)); in main() 36 DEFINE(PT_EXCCAUSE, offsetof (struct pt_regs, exccause)); in main() 37 DEFINE(PT_EXCVADDR, offsetof (struct pt_regs, excvaddr)); in main() 38 DEFINE(PT_DEBUGCAUSE, offsetof (struct pt_regs, debugcause)); in main() 39 DEFINE(PT_WMASK, offsetof (struct pt_regs, wmask)); in main() 40 DEFINE(PT_LBEG, offsetof (struct pt_regs, lbeg)); in main() 41 DEFINE(PT_LEND, offsetof (struct pt_regs, lend)); in main() 42 DEFINE(PT_LCOUNT, offsetof (struct pt_regs, lcount)); in main() [all …]
|
/linux-6.6.21/arch/riscv/kernel/ |
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-6.6.21/include/linux/ |
D | entry-common.h | 76 static __always_inline void arch_enter_from_user_mode(struct pt_regs *regs); 79 static __always_inline void arch_enter_from_user_mode(struct pt_regs *regs) {} in arch_enter_from_user_mode() 101 void enter_from_user_mode(struct pt_regs *regs); 118 void syscall_enter_from_user_mode_prepare(struct pt_regs *regs); 143 long syscall_enter_from_user_mode_work(struct pt_regs *regs, long syscall); 162 long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall); 205 static inline void arch_exit_to_user_mode_work(struct pt_regs *regs, 209 static inline void arch_exit_to_user_mode_work(struct pt_regs *regs, in arch_exit_to_user_mode_work() 224 static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs, 228 static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs, in arch_exit_to_user_mode_prepare() [all …]
|
/linux-6.6.21/arch/x86/kernel/ |
D | asm-offsets_32.c | 24 OFFSET(PT_EBX, pt_regs, bx); in foo() 25 OFFSET(PT_ECX, pt_regs, cx); in foo() 26 OFFSET(PT_EDX, pt_regs, dx); in foo() 27 OFFSET(PT_ESI, pt_regs, si); in foo() 28 OFFSET(PT_EDI, pt_regs, di); in foo() 29 OFFSET(PT_EBP, pt_regs, bp); in foo() 30 OFFSET(PT_EAX, pt_regs, ax); in foo() 31 OFFSET(PT_DS, pt_regs, ds); in foo() 32 OFFSET(PT_ES, pt_regs, es); in foo() 33 OFFSET(PT_FS, pt_regs, fs); in foo() [all …]
|