Searched refs:kcb (Results 1 – 8 of 8) sorted by relevance
168 static void save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument170 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()171 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()172 kcb->prev_kprobe.old_SR = kcb->kprobe_old_SR; in save_previous_kprobe()173 kcb->prev_kprobe.saved_SR = kcb->kprobe_saved_SR; in save_previous_kprobe()174 kcb->prev_kprobe.saved_epc = kcb->kprobe_saved_epc; in save_previous_kprobe()177 static void restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument179 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()180 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()181 kcb->kprobe_old_SR = kcb->prev_kprobe.old_SR; in restore_previous_kprobe()[all …]
75 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument77 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() argument85 __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 …]
142 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in swap_instruction() local143 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() argument186 __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() argument202 __ctl_load(kcb->kprobe_saved_ctl, 9, 11); in disable_singlestep()204 regs->psw.mask |= kcb->kprobe_saved_imask; in disable_singlestep()[all …]
131 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument133 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()134 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()135 kcb->prev_kprobe.saved_msr = kcb->kprobe_saved_msr; in save_previous_kprobe()138 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument140 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()141 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()142 kcb->kprobe_saved_msr = kcb->prev_kprobe.saved_msr; in restore_previous_kprobe()146 struct kprobe_ctlblk *kcb) in set_current_kprobe() argument149 kcb->kprobe_saved_msr = regs->msr; in set_current_kprobe()[all …]
116 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument118 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()119 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()122 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument124 __get_cpu_var(current_kprobe) = kcb->prev_kprobe.kp; in restore_previous_kprobe()125 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()134 struct kprobe_ctlblk *kcb) in singlestep() argument151 struct kprobe_ctlblk *kcb; in kprobe_handler() local154 kcb = get_kprobe_ctlblk(); in kprobe_handler()161 switch (kcb->kprobe_status) { in kprobe_handler()[all …]
124 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument126 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() argument132 __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() argument220 struct kprobe_ctlblk *kcb; in kprobe_handler() local227 kcb = get_kprobe_ctlblk(); in kprobe_handler()235 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler()[all …]
396 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument398 kcb->prev_kprobe.kp = kprobe_running(); in save_previous_kprobe()399 kcb->prev_kprobe.status = kcb->kprobe_status; in save_previous_kprobe()400 kcb->prev_kprobe.old_flags = kcb->kprobe_old_flags; in save_previous_kprobe()401 kcb->prev_kprobe.saved_flags = kcb->kprobe_saved_flags; in save_previous_kprobe()404 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) in restore_previous_kprobe() argument406 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp); in restore_previous_kprobe()407 kcb->kprobe_status = kcb->prev_kprobe.status; in restore_previous_kprobe()408 kcb->kprobe_old_flags = kcb->prev_kprobe.old_flags; in restore_previous_kprobe()409 kcb->kprobe_saved_flags = kcb->prev_kprobe.saved_flags; in restore_previous_kprobe()[all …]
387 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) in save_previous_kprobe() argument390 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() argument398 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 …]