/linux-5.19.10/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-5.19.10/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-5.19.10/arch/arm64/include/asm/ |
D | exception.h | 34 asmlinkage void handle_bad_stack(struct pt_regs *regs); 36 asmlinkage void el1t_64_sync_handler(struct pt_regs *regs); 37 asmlinkage void el1t_64_irq_handler(struct pt_regs *regs); 38 asmlinkage void el1t_64_fiq_handler(struct pt_regs *regs); 39 asmlinkage void el1t_64_error_handler(struct pt_regs *regs); 41 asmlinkage void el1h_64_sync_handler(struct pt_regs *regs); 42 asmlinkage void el1h_64_irq_handler(struct pt_regs *regs); 43 asmlinkage void el1h_64_fiq_handler(struct pt_regs *regs); 44 asmlinkage void el1h_64_error_handler(struct pt_regs *regs); 46 asmlinkage void el0t_64_sync_handler(struct pt_regs *regs); [all …]
|
/linux-5.19.10/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-5.19.10/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 prepare_exit_to_user_mode(struct pt_regs *regs) in prepare_exit_to_user_mode() 140 static __always_inline void exit_to_user_mode(struct pt_regs *regs) in exit_to_user_mode() 147 asmlinkage void noinstr asm_exit_to_user_mode(struct pt_regs *regs) in asm_exit_to_user_mode() 157 static void noinstr arm64_enter_nmi(struct pt_regs *regs) in arm64_enter_nmi() 175 static void noinstr arm64_exit_nmi(struct pt_regs *regs) in arm64_exit_nmi() [all …]
|
/linux-5.19.10/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-5.19.10/arch/x86/include/asm/ |
D | ptrace.h | 12 struct pt_regs { struct 59 struct pt_regs { argument 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-5.19.10/arch/powerpc/kernel/ |
D | kgdb.c | 116 int kgdb_skipexception(int exception, struct pt_regs *regs) in kgdb_skipexception() 121 static int kgdb_debugger_ipi(struct pt_regs *regs) in kgdb_debugger_ipi() 135 static int kgdb_debugger(struct pt_regs *regs) in kgdb_debugger() 141 static int kgdb_handle_breakpoint(struct pt_regs *regs) in kgdb_handle_breakpoint() 155 static int kgdb_singlestep(struct pt_regs *regs) in kgdb_singlestep() 165 static int kgdb_iabr_match(struct pt_regs *regs) in kgdb_iabr_match() 175 static int kgdb_break_match(struct pt_regs *regs) in kgdb_break_match() 196 struct pt_regs *regs = (struct pt_regs *)(p->thread.ksp + in sleeping_thread_to_gdb_regs() 248 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[0]) }, 249 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[1]) }, [all …]
|
/linux-5.19.10/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, event)); in main() 50 DEFINE(PT_sp, offsetof(struct pt_regs, sp)); in main() 51 DEFINE(PT_r0, offsetof(struct pt_regs, r0)); in main() 52 DEFINE(PT_r1, offsetof(struct pt_regs, r1)); in main() 53 DEFINE(PT_r2, offsetof(struct pt_regs, r2)); in main() 54 DEFINE(PT_r3, offsetof(struct pt_regs, r3)); in main() 55 DEFINE(PT_r4, offsetof(struct pt_regs, r4)); in main() 56 DEFINE(PT_r5, offsetof(struct pt_regs, r5)); in main() 57 DEFINE(PT_r6, offsetof(struct pt_regs, r6)); in main() [all …]
|
/linux-5.19.10/arch/riscv/include/asm/ |
D | ptrace.h | 15 struct pt_regs { struct 64 #define MAX_REG_OFFSET offsetof(struct pt_regs, orig_a0) argument 67 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer() 71 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() 80 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer() 84 static inline void user_stack_pointer_set(struct pt_regs *regs, in user_stack_pointer_set() 91 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer() 97 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer() 101 static inline void frame_pointer_set(struct pt_regs *regs, in frame_pointer_set() 107 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value() [all …]
|
/linux-5.19.10/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-5.19.10/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-5.19.10/arch/powerpc/include/asm/ |
D | ptrace.h | 28 struct pt_regs struct 100 #define STACK_FRAME_WITH_PT_REGS (STACK_FRAME_OVERHEAD + sizeof(struct pt_regs)) argument 119 #define STACK_INT_FRAME_SIZE (sizeof(struct pt_regs) + \ 140 #define STACK_INT_FRAME_SIZE (sizeof(struct pt_regs) + STACK_FRAME_OVERHEAD) 153 extern unsigned long profile_pc(struct pt_regs *regs); 158 long do_syscall_trace_enter(struct pt_regs *regs); 159 void do_syscall_trace_leave(struct pt_regs *regs); 169 static inline void regs_set_return_ip(struct pt_regs *regs, unsigned long ip) in regs_set_return_ip() 175 static inline void regs_set_return_msr(struct pt_regs *regs, unsigned long msr) in regs_set_return_msr() 181 static inline void regs_add_return_ip(struct pt_regs *regs, long offset) in regs_add_return_ip() [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 …]
|
D | interrupt.h | 83 static inline bool is_implicit_soft_masked(struct pt_regs *regs) in is_implicit_soft_masked() 105 static inline bool is_implicit_soft_masked(struct pt_regs *regs) in is_implicit_soft_masked() 115 static inline void nap_adjust_return(struct pt_regs *regs) in nap_adjust_return() 138 static inline void interrupt_enter_prepare(struct pt_regs *regs) in interrupt_enter_prepare() 228 static inline void interrupt_exit_prepare(struct pt_regs *regs) in interrupt_exit_prepare() 232 static inline void interrupt_async_enter_prepare(struct pt_regs *regs) in interrupt_async_enter_prepare() 251 static inline void interrupt_async_exit_prepare(struct pt_regs *regs) in interrupt_async_exit_prepare() 274 static inline bool nmi_disables_ftrace(struct pt_regs *regs) in nmi_disables_ftrace() 291 static inline void interrupt_nmi_enter_prepare(struct pt_regs *regs, struct interrupt_nmi_state *st… in interrupt_nmi_enter_prepare() 353 static inline void interrupt_nmi_exit_prepare(struct pt_regs *regs, struct interrupt_nmi_state *sta… in interrupt_nmi_exit_prepare() [all …]
|
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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 …]
|
/linux-5.19.10/arch/riscv/kernel/ |
D | kgdb.c | 58 static int get_step_address(struct pt_regs *regs, unsigned long *next_addr) in get_step_address() 139 static int do_single_step(struct pt_regs *regs) in do_single_step() 173 static void undo_single_step(struct pt_regs *regs) in undo_single_step() 189 {DBG_REG_RA, GDB_SIZEOF_REG, offsetof(struct pt_regs, ra)}, 190 {DBG_REG_SP, GDB_SIZEOF_REG, offsetof(struct pt_regs, sp)}, 191 {DBG_REG_GP, GDB_SIZEOF_REG, offsetof(struct pt_regs, gp)}, 192 {DBG_REG_TP, GDB_SIZEOF_REG, offsetof(struct pt_regs, tp)}, 193 {DBG_REG_T0, GDB_SIZEOF_REG, offsetof(struct pt_regs, t0)}, 194 {DBG_REG_T1, GDB_SIZEOF_REG, offsetof(struct pt_regs, t1)}, 195 {DBG_REG_T2, GDB_SIZEOF_REG, offsetof(struct pt_regs, t2)}, [all …]
|
/linux-5.19.10/arch/ia64/kernel/ |
D | asm-offsets.c | 27 DEFINE(IA64_PT_REGS_SIZE, sizeof (struct pt_regs)); in foo() 74 DEFINE(IA64_PT_REGS_B6_OFFSET, offsetof (struct pt_regs, b6)); in foo() 75 DEFINE(IA64_PT_REGS_B7_OFFSET, offsetof (struct pt_regs, b7)); in foo() 76 DEFINE(IA64_PT_REGS_AR_CSD_OFFSET, offsetof (struct pt_regs, ar_csd)); in foo() 77 DEFINE(IA64_PT_REGS_AR_SSD_OFFSET, offsetof (struct pt_regs, ar_ssd)); in foo() 78 DEFINE(IA64_PT_REGS_R8_OFFSET, offsetof (struct pt_regs, r8)); in foo() 79 DEFINE(IA64_PT_REGS_R9_OFFSET, offsetof (struct pt_regs, r9)); in foo() 80 DEFINE(IA64_PT_REGS_R10_OFFSET, offsetof (struct pt_regs, r10)); in foo() 81 DEFINE(IA64_PT_REGS_R11_OFFSET, offsetof (struct pt_regs, r11)); in foo() 82 DEFINE(IA64_PT_REGS_CR_IPSR_OFFSET, offsetof (struct pt_regs, cr_ipsr)); in foo() [all …]
|