/arch/mips/kernel/ |
D | kprobes.c | 216 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 218 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 219 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 220 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe() 221 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe() 222 kcb->prev_kprobe.saved_epc = kcb->kprobe_saved_epc; in save_previous_kprobe() 225 static void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 227 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe() 228 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 229 kcb->kprobe_old_SR = kcb->prev_kprobe.old_SR; in restore_previous_kprobe() [all …]
|
/arch/sparc/kernel/ |
D | kprobes.c | 75 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 77 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 78 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 79 kcb->prev_kprobe.orig_tnpc = kcb->kprobe_orig_tnpc; in save_previous_kprobe() 80 kcb->prev_kprobe.orig_tstate_pil = kcb->kprobe_orig_tstate_pil; in save_previous_kprobe() 83 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 85 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe() 86 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 87 kcb->kprobe_orig_tnpc = kcb->prev_kprobe.orig_tnpc; in restore_previous_kprobe() 88 kcb->kprobe_orig_tstate_pil = kcb->prev_kprobe.orig_tstate_pil; in restore_previous_kprobe() [all …]
|
/arch/powerpc/kernel/ |
D | kprobes.c | 130 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 132 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 133 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 134 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe() 137 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 139 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe() 140 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 141 kcb->kprobe_saved_msr = kcb->prev_kprobe.saved_msr; in restore_previous_kprobe() 145 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument 148 kcb->kprobe_saved_msr = regs->msr; in set_current_kprobe() [all …]
|
/arch/s390/kernel/ |
D | kprobes.c | 142 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in swap_instruction() local 143 unsigned long status = kcb->kprobe_status; in swap_instruction() 146 kcb->kprobe_status = KPROBE_SWAP_INST; in swap_instruction() 148 kcb->kprobe_status = status; in swap_instruction() 174 static void __kprobes enable_singlestep(struct kprobe_ctlblk *kcb, in enable_singlestep() argument 186 __ctl_store(kcb->kprobe_saved_ctl, 9, 11); in enable_singlestep() 187 kcb->kprobe_saved_imask = regs->psw.mask & in enable_singlestep() 197 static void __kprobes disable_singlestep(struct kprobe_ctlblk *kcb, in disable_singlestep() argument 202 __ctl_load(kcb->kprobe_saved_ctl, 9, 11); in disable_singlestep() 204 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep() [all …]
|
/arch/x86/kernel/kprobes/ |
D | core.c | 428 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 430 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 431 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 432 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe() 433 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe() 436 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 438 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe() 439 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 440 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe() 441 kcb->kprobe_saved_flags = kcb->prev_kprobe.saved_flags; in restore_previous_kprobe() [all …]
|
D | ftrace.c | 29 struct kprobe_ctlblk *kcb) in __skip_singlestep() argument 37 kcb->kprobe_status = KPROBE_HIT_SSDONE; in __skip_singlestep() 45 struct kprobe_ctlblk *kcb) in skip_singlestep() argument 48 return __skip_singlestep(p, regs, kcb); in skip_singlestep() 58 struct kprobe_ctlblk *kcb; in kprobe_ftrace_handler() local 68 kcb = get_kprobe_ctlblk(); in kprobe_ftrace_handler() 76 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_ftrace_handler() 78 __skip_singlestep(p, regs, kcb); in kprobe_ftrace_handler()
|
D | common.h | 105 struct kprobe_ctlblk *kcb); 108 struct kprobe_ctlblk *kcb) in skip_singlestep() argument
|
D | opt.c | 146 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in optimized_callback() local 168 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in optimized_callback()
|
/arch/arm/kernel/ |
D | kprobes.c | 166 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 168 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe() 169 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe() 172 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 174 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe() 175 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe() 198 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb) in singlestep() argument 213 struct kprobe_ctlblk *kcb; in kprobe_handler() local 215 kcb = get_kprobe_ctlblk(); in kprobe_handler() 235 switch (kcb->kprobe_status) { in kprobe_handler() [all …]
|
/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 __get_cpu_var(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 …]
|
/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 __get_cpu_var(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 …]
|
/arch/ia64/kernel/ |
D | kprobes.c | 387 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument 390 i = atomic_add_return(1, &kcb->prev_kprobe_index); in save_previous_kprobe() 391 kcb->prev_kprobe[i-1].kp = kprobe_running(); in save_previous_kprobe() 392 kcb->prev_kprobe[i-1].status = kcb->kprobe_status; in save_previous_kprobe() 395 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument 398 i = atomic_read(&kcb->prev_kprobe_index); in restore_previous_kprobe() 399 __get_cpu_var(current_kprobe) = kcb->prev_kprobe[i-1].kp; in restore_previous_kprobe() 400 kcb->kprobe_status = kcb->prev_kprobe[i-1].status; in restore_previous_kprobe() 401 atomic_sub(1, &kcb->prev_kprobe_index); in restore_previous_kprobe() 405 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument [all …]
|