/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | kprobes.c | 155 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 157 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 158 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 159 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe() 160 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe() 161 kcb->prev_kprobe.saved_epc = kcb in save_previous_kprobe() 164 restore_previous_kprobe(struct kprobe_ctlblk *kcb) restore_previous_kprobe() argument 173 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 194 evaluate_branch_instruction(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) evaluate_branch_instruction() argument 228 prepare_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) prepare_singlestep() argument 261 resume_execution(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) resume_execution() argument 278 struct kprobe_ctlblk *kcb; kprobe_handler() local 375 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 404 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | kprobes.c | 162 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 164 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 165 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 166 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe() 167 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe() 168 kcb->prev_kprobe.saved_epc = kcb in save_previous_kprobe() 171 restore_previous_kprobe(struct kprobe_ctlblk *kcb) restore_previous_kprobe() argument 180 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 201 evaluate_branch_instruction(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) evaluate_branch_instruction() argument 235 prepare_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) prepare_singlestep() argument 266 resume_execution(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) resume_execution() argument 284 struct kprobe_ctlblk *kcb; kprobe_handler() local 382 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 411 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | kprobes.c | 126 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 128 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 129 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 130 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe() 131 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe() 132 kcb->prev_kprobe.saved_era = kcb in save_previous_kprobe() 135 restore_previous_kprobe(struct kprobe_ctlblk *kcb) restore_previous_kprobe() argument 144 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 170 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 207 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 234 struct kprobe_ctlblk *kcb; kprobe_handler() local 285 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 313 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/arm64/kernel/probes/ |
H A D | kprobes.c | 65 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in arch_simulate_insn() local 71 post_kprobe_handler(kcb, regs); in arch_simulate_insn() 144 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 146 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 147 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 150 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 152 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 153 kcb->kprobe_status = kcb in restore_previous_kprobe() 166 kprobes_save_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_save_local_irqflag() argument 173 kprobes_restore_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_restore_local_irqflag() argument 181 set_ss_context(struct kprobe_ctlblk *kcb, unsigned long addr) set_ss_context() argument 187 clear_ss_context(struct kprobe_ctlblk *kcb) clear_ss_context() argument 193 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 221 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 246 post_kprobe_handler(struct kprobe_ctlblk *kcb, struct pt_regs *regs) post_kprobe_handler() argument 273 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local 329 struct kprobe_ctlblk *kcb; kprobe_handler() local 370 kprobe_ss_hit(struct kprobe_ctlblk *kcb, unsigned long addr) kprobe_ss_hit() argument 384 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_breakpoint_ss_handler() local [all...] |
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | kprobes.c | 85 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 87 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 88 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 92 static void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 94 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 95 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 113 static void save_local_irqflag(struct kprobe_ctlblk *kcb, in save_local_irqflag() argument 116 kcb in save_local_irqflag() 121 restore_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) restore_local_irqflag() argument 128 post_kprobe_handler(struct kprobe *cur, struct kprobe_ctlblk *kcb, struct pt_regs *regs) post_kprobe_handler() argument 155 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 183 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 209 struct kprobe_ctlblk *kcb; kprobe_breakpoint_handler() local 273 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_singlestep_handler() local 291 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/csky/kernel/probes/ |
H A D | kprobes.c | 68 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in arch_simulate_insn() local 73 post_kprobe_handler(kcb, regs); in arch_simulate_insn() 133 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 135 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 136 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 139 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 141 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 142 kcb->kprobe_status = kcb in restore_previous_kprobe() 158 kprobes_save_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_save_local_irqflag() argument 165 kprobes_restore_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_restore_local_irqflag() argument 172 set_ss_context(struct kprobe_ctlblk *kcb, unsigned long addr, struct kprobe *p) set_ss_context() argument 180 clear_ss_context(struct kprobe_ctlblk *kcb) clear_ss_context() argument 190 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 220 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 245 post_kprobe_handler(struct kprobe_ctlblk *kcb, struct pt_regs *regs) post_kprobe_handler() argument 277 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local 332 struct kprobe_ctlblk *kcb; kprobe_breakpoint_handler() local 381 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_single_step_handler() local [all...] |
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | kprobes.c | 77 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 79 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 80 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 81 kcb->prev_kprobe.orig_tnpc = kcb->kprobe_orig_tnpc; in save_previous_kprobe() 82 kcb->prev_kprobe.orig_tstate_pil = kcb->kprobe_orig_tstate_pil; in save_previous_kprobe() 85 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 87 __this_cpu_write(current_kprobe, kcb in restore_previous_kprobe() 93 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 101 prepare_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) prepare_singlestep() argument 121 struct kprobe_ctlblk *kcb; kprobe_handler() local 277 resume_execution(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) resume_execution() argument 296 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 323 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-6.6/arch/csky/kernel/probes/ |
H A D | kprobes.c | 70 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in arch_simulate_insn() local 75 post_kprobe_handler(kcb, regs); in arch_simulate_insn() 133 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 135 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 136 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 139 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 141 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 142 kcb->kprobe_status = kcb in restore_previous_kprobe() 158 kprobes_save_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_save_local_irqflag() argument 165 kprobes_restore_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_restore_local_irqflag() argument 172 set_ss_context(struct kprobe_ctlblk *kcb, unsigned long addr, struct kprobe *p) set_ss_context() argument 180 clear_ss_context(struct kprobe_ctlblk *kcb) clear_ss_context() argument 190 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 220 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 245 post_kprobe_handler(struct kprobe_ctlblk *kcb, struct pt_regs *regs) post_kprobe_handler() argument 277 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local 314 struct kprobe_ctlblk *kcb; kprobe_breakpoint_handler() local 363 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_single_step_handler() local [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | kprobes.c | 77 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 79 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 80 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 81 kcb->prev_kprobe.orig_tnpc = kcb->kprobe_orig_tnpc; in save_previous_kprobe() 82 kcb->prev_kprobe.orig_tstate_pil = kcb->kprobe_orig_tstate_pil; in save_previous_kprobe() 85 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 87 __this_cpu_write(current_kprobe, kcb in restore_previous_kprobe() 93 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 101 prepare_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) prepare_singlestep() argument 121 struct kprobe_ctlblk *kcb; kprobe_handler() local 277 resume_execution(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) resume_execution() argument 296 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 323 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | kprobes.c | 54 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 56 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 57 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 60 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 62 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 63 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 72 struct kprobe_ctlblk *kcb, struct pt_regs *regs) in setup_singlestep() 74 kcb in setup_singlestep() 71 setup_singlestep(struct kprobe *p, struct kprobe_ctlblk *kcb, struct pt_regs *regs) setup_singlestep() argument 84 struct kprobe_ctlblk *kcb; parisc_kprobe_break_handler() local 133 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); parisc_kprobe_ss_handler() local [all...] |
/kernel/linux/linux-6.6/arch/arm64/kernel/probes/ |
H A D | kprobes.c | 85 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in arch_simulate_insn() local 91 post_kprobe_handler(p, kcb, regs); in arch_simulate_insn() 164 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 166 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 167 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 170 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 172 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 173 kcb->kprobe_status = kcb in restore_previous_kprobe() 186 kprobes_save_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_save_local_irqflag() argument 193 kprobes_restore_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_restore_local_irqflag() argument 200 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 227 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 252 post_kprobe_handler(struct kprobe *cur, struct kprobe_ctlblk *kcb, struct pt_regs *regs) post_kprobe_handler() argument 274 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local 305 struct kprobe_ctlblk *kcb; kprobe_breakpoint_handler() local 353 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_breakpoint_ss_handler() local [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/probes/ |
H A D | kprobes.c | 43 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in arch_simulate_insn() local 49 post_kprobe_handler(p, kcb, regs); in arch_simulate_insn() 136 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 138 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 139 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 142 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 144 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 145 kcb->kprobe_status = kcb in restore_previous_kprobe() 161 kprobes_save_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_save_local_irqflag() argument 168 kprobes_restore_local_irqflag(struct kprobe_ctlblk *kcb, struct pt_regs *regs) kprobes_restore_local_irqflag() argument 174 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 202 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 227 post_kprobe_handler(struct kprobe *cur, struct kprobe_ctlblk *kcb, struct pt_regs *regs) post_kprobe_handler() argument 254 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local 293 struct kprobe_ctlblk *kcb; kprobe_breakpoint_handler() local 342 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_single_step_handler() local [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | kprobes.c | 60 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 62 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 63 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 66 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 68 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 69 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 78 struct kprobe_ctlblk *kcb, struct pt_regs *regs) in setup_singlestep() 80 kcb in setup_singlestep() 77 setup_singlestep(struct kprobe *p, struct kprobe_ctlblk *kcb, struct pt_regs *regs) setup_singlestep() argument 88 struct kprobe_ctlblk *kcb; parisc_kprobe_break_handler() local 137 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); parisc_kprobe_ss_handler() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | kprobes.c | 184 static nokprobe_inline void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 186 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 187 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 188 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe() 191 static nokprobe_inline void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 193 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 194 kcb->kprobe_status = kcb in restore_previous_kprobe() 198 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 274 struct kprobe_ctlblk *kcb; kprobe_handler() local 438 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_post_handler() local 481 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | kprobes.c | 186 static void enable_singlestep(struct kprobe_ctlblk *kcb, in enable_singlestep() argument 198 __ctl_store(kcb->kprobe_saved_ctl, 9, 11); in enable_singlestep() 199 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep() 210 static void disable_singlestep(struct kprobe_ctlblk *kcb, in disable_singlestep() argument 215 __ctl_load(kcb->kprobe_saved_ctl, 9, 11); in disable_singlestep() 217 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep() 224 * previous kprobe is stored in kcb->prev_kprobe. A stack of up to 227 static void push_kprobe(struct kprobe_ctlblk *kcb, struct kprobe *p) in push_kprobe() argument 229 kcb->prev_kprobe.kp = __this_cpu_read(current_kprobe); in push_kprobe() 230 kcb in push_kprobe() 240 pop_kprobe(struct kprobe_ctlblk *kcb) pop_kprobe() argument 258 kprobe_reenter_check(struct kprobe_ctlblk *kcb, struct kprobe *p) kprobe_reenter_check() argument 282 struct kprobe_ctlblk *kcb; kprobe_handler() local 375 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); resume_execution() local 400 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 428 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_trap_handler() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | kprobes.c | 224 static nokprobe_inline void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 226 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 227 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 228 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe() 231 static nokprobe_inline void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 233 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 234 kcb->kprobe_status = kcb in restore_previous_kprobe() 238 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 301 struct kprobe_ctlblk *kcb; kprobe_handler() local 466 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_post_handler() local 509 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | kprobes.c | 223 static void enable_singlestep(struct kprobe_ctlblk *kcb, in enable_singlestep() argument 235 __ctl_store(kcb->kprobe_saved_ctl, 9, 11); in enable_singlestep() 236 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep() 247 static void disable_singlestep(struct kprobe_ctlblk *kcb, in disable_singlestep() argument 252 __ctl_load(kcb->kprobe_saved_ctl, 9, 11); in disable_singlestep() 254 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep() 261 * previous kprobe is stored in kcb->prev_kprobe. A stack of up to 264 static void push_kprobe(struct kprobe_ctlblk *kcb, struct kprobe *p) in push_kprobe() argument 266 kcb->prev_kprobe.kp = __this_cpu_read(current_kprobe); in push_kprobe() 267 kcb in push_kprobe() 277 pop_kprobe(struct kprobe_ctlblk *kcb) pop_kprobe() argument 285 kprobe_reenter_check(struct kprobe_ctlblk *kcb, struct kprobe *p) kprobe_reenter_check() argument 309 struct kprobe_ctlblk *kcb; kprobe_handler() local 375 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); resume_execution() local 400 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 428 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_trap_handler() local [all...] |
/kernel/linux/linux-5.10/arch/arm/probes/kprobes/ |
H A D | core.c | 190 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 192 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 193 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 196 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 198 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 199 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 222 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() argument 237 struct kprobe_ctlblk *kcb; in kprobe_handler() local 332 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-6.6/arch/arm/probes/kprobes/ |
H A D | core.c | 192 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 194 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 195 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 198 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 200 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 201 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 224 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() argument 239 struct kprobe_ctlblk *kcb; in kprobe_handler() local 334 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/kprobes/ |
H A D | core.c | 789 save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 791 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 792 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 793 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 794 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe() 798 restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 800 __this_cpu_write(current_kprobe, kcb in restore_previous_kprobe() 807 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 827 kprobe_post_process(struct kprobe *cur, struct pt_regs *regs, struct kprobe_ctlblk *kcb) kprobe_post_process() argument 847 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 904 resume_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) resume_singlestep() argument 922 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 952 kprobe_is_ss(struct kprobe_ctlblk *kcb) kprobe_is_ss() argument 966 struct kprobe_ctlblk *kcb; kprobe_int3_handler() local 1089 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/arc/kernel/ |
H A D | kprobes.c | 79 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 81 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 82 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 85 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 87 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 88 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 196 struct kprobe_ctlblk *kcb; in arc_kprobe_handler() local 200 kcb in arc_kprobe_handler() 248 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); arc_post_kprobe_handler() local 292 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-6.6/arch/arc/kernel/ |
H A D | kprobes.c | 79 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 81 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 82 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 85 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 87 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 88 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 196 struct kprobe_ctlblk *kcb; in arc_kprobe_handler() local 200 kcb in arc_kprobe_handler() 248 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); arc_post_kprobe_handler() local 292 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/kprobes/ |
H A D | core.c | 798 save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 800 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 801 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 802 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 803 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe() 807 restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 809 __this_cpu_write(current_kprobe, kcb in restore_previous_kprobe() 816 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 824 kprobe_post_process(struct kprobe *cur, struct pt_regs *regs, struct kprobe_ctlblk *kcb) kprobe_post_process() argument 844 setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb, int reenter) setup_singlestep() argument 901 resume_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) resume_singlestep() argument 919 reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) reenter_kprobe() argument 949 kprobe_is_ss(struct kprobe_ctlblk *kcb) kprobe_is_ss() argument 963 struct kprobe_ctlblk *kcb; kprobe_int3_handler() local 1017 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local [all...] |
/kernel/linux/linux-5.10/arch/sh/kernel/ |
H A D | kprobes.c | 121 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 123 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 124 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 127 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 129 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 130 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 134 struct kprobe_ctlblk *kcb) in set_current_kprobe() 218 struct kprobe_ctlblk *kcb; in kprobe_handler() local 133 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 314 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 363 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local 433 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_exceptions_notify() local [all...] |
/kernel/linux/linux-6.6/arch/sh/kernel/ |
H A D | kprobes.c | 121 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 123 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 124 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 127 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 129 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 130 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 134 struct kprobe_ctlblk *kcb) in set_current_kprobe() 218 struct kprobe_ctlblk *kcb; in kprobe_handler() local 133 set_current_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) set_current_kprobe() argument 314 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); post_kprobe_handler() local 363 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_fault_handler() local 416 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); kprobe_exceptions_notify() local [all...] |