/Linux-v4.19/arch/mips/kernel/ |
D | kprobes.c | 167 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 169 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 170 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 171 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe() 172 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe() 173 kcb->prev_kprobe.saved_epc = kcb->kprobe_saved_epc; in save_previous_kprobe() 176 static void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 178 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 179 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 180 kcb->kprobe_old_SR = kcb->prev_kprobe.old_SR; in restore_previous_kprobe() [all …]
|
/Linux-v4.19/arch/sparc/kernel/ |
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->prev_kprobe.kp); in restore_previous_kprobe() 88 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 89 kcb->kprobe_orig_tnpc = kcb->prev_kprobe.orig_tnpc; in restore_previous_kprobe() 90 kcb->kprobe_orig_tstate_pil = kcb->prev_kprobe.orig_tstate_pil; in restore_previous_kprobe() [all …]
|
/Linux-v4.19/arch/arm64/kernel/probes/ |
D | kprobes.c | 69 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in arch_simulate_insn() local 75 post_kprobe_handler(kcb, regs); in arch_simulate_insn() 152 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 154 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 155 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 158 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 160 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 161 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 204 static void __kprobes kprobes_save_local_irqflag(struct kprobe_ctlblk *kcb, in kprobes_save_local_irqflag() argument 207 kcb->saved_irqflag = regs->pstate; in kprobes_save_local_irqflag() [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | kprobes.c | 186 static nokprobe_inline void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 188 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 189 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 190 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe() 193 static nokprobe_inline void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 195 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 196 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 197 kcb->kprobe_saved_msr = kcb->prev_kprobe.saved_msr; in restore_previous_kprobe() 201 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument 204 kcb->kprobe_saved_msr = regs->msr; in set_current_kprobe() [all …]
|
D | kprobes-ftrace.c | 33 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 39 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 50 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 58 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
/Linux-v4.19/arch/x86/kernel/kprobes/ |
D | core.c | 519 save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 521 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 522 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 523 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 524 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe() 528 restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 530 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 531 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 532 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe() 533 kcb->kprobe_saved_flags = kcb->prev_kprobe.saved_flags; in restore_previous_kprobe() [all …]
|
D | ftrace.c | 33 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 40 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 49 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 57 kcb->kprobe_status = KPROBE_HIT_SSDONE; in kprobe_ftrace_handler()
|
D | opt.c | 166 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in optimized_callback() local 178 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
|
/Linux-v4.19/arch/s390/kernel/ |
D | kprobes.c | 199 static void enable_singlestep(struct kprobe_ctlblk *kcb, in enable_singlestep() argument 211 __ctl_store(kcb->kprobe_saved_ctl, 9, 11); in enable_singlestep() 212 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep() 223 static void disable_singlestep(struct kprobe_ctlblk *kcb, in disable_singlestep() argument 228 __ctl_load(kcb->kprobe_saved_ctl, 9, 11); in disable_singlestep() 230 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep() 240 static void push_kprobe(struct kprobe_ctlblk *kcb, struct kprobe *p) in push_kprobe() argument 242 kcb->prev_kprobe.kp = __this_cpu_read(current_kprobe); in push_kprobe() 243 kcb->prev_kprobe.status = kcb->kprobe_status; in push_kprobe() 253 static void pop_kprobe(struct kprobe_ctlblk *kcb) in pop_kprobe() argument [all …]
|
/Linux-v4.19/arch/sh/kernel/ |
D | kprobes.c | 124 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 126 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 127 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 130 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 132 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 133 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 137 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument 220 struct kprobe_ctlblk *kcb; in kprobe_handler() local 227 kcb = get_kprobe_ctlblk(); in kprobe_handler() 235 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler() [all …]
|
/Linux-v4.19/arch/arc/kernel/ |
D | kprobes.c | 82 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 84 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 85 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 88 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 90 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 91 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 199 struct kprobe_ctlblk *kcb; in arc_kprobe_handler() local 203 kcb = get_kprobe_ctlblk(); in arc_kprobe_handler() 215 save_previous_kprobe(kcb); in arc_kprobe_handler() 219 kcb->kprobe_status = KPROBE_REENTER; in arc_kprobe_handler() [all …]
|
/Linux-v4.19/arch/arm/probes/kprobes/ |
D | core.c | 198 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 200 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 201 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 204 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 206 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 207 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 230 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() argument 245 struct kprobe_ctlblk *kcb; in kprobe_handler() local 247 kcb = get_kprobe_ctlblk(); in kprobe_handler() 275 switch (kcb->kprobe_status) { in kprobe_handler() [all …]
|
D | opt-arm.c | 168 struct kprobe_ctlblk *kcb; in optimized_callback() local 175 kcb = get_kprobe_ctlblk(); in optimized_callback() 181 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
|
/Linux-v4.19/arch/ia64/kernel/ |
D | kprobes.c | 385 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 388 i = atomic_add_return(1, &kcb->prev_kprobe_index); in save_previous_kprobe() 389 kcb->prev_kprobe[i-1].kp = kprobe_running(); in save_previous_kprobe() 390 kcb->prev_kprobe[i-1].status = kcb->kprobe_status; in save_previous_kprobe() 393 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 396 i = atomic_read(&kcb->prev_kprobe_index); in restore_previous_kprobe() 397 __this_cpu_write(current_kprobe, kcb->prev_kprobe[i-1].kp); in restore_previous_kprobe() 398 kcb->kprobe_status = kcb->prev_kprobe[i-1].status; in restore_previous_kprobe() 399 atomic_sub(1, &kcb->prev_kprobe_index); in restore_previous_kprobe() 403 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument [all …]
|