Lines Matching refs:kcb

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() argument
218 struct kprobe_ctlblk *kcb; in kprobe_handler() local
225 kcb = get_kprobe_ctlblk(); in kprobe_handler()
233 if (kcb->kprobe_status == KPROBE_HIT_SS && in kprobe_handler()
243 save_previous_kprobe(kcb); in kprobe_handler()
244 set_current_kprobe(p, regs, kcb); in kprobe_handler()
247 kcb->kprobe_status = KPROBE_REENTER; in kprobe_handler()
270 set_current_kprobe(p, regs, kcb); in kprobe_handler()
271 kcb->kprobe_status = KPROBE_HIT_ACTIVE; in kprobe_handler()
281 kcb->kprobe_status = KPROBE_HIT_SS; in kprobe_handler()
314 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in post_kprobe_handler() local
321 if ((kcb->kprobe_status != KPROBE_REENTER) && cur->post_handler) { in post_kprobe_handler()
322 kcb->kprobe_status = KPROBE_HIT_SSDONE; in post_kprobe_handler()
347 if (kcb->kprobe_status == KPROBE_REENTER) { in post_kprobe_handler()
348 restore_previous_kprobe(kcb); in post_kprobe_handler()
363 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in kprobe_fault_handler() local
366 switch (kcb->kprobe_status) { in kprobe_fault_handler()
377 if (kcb->kprobe_status == KPROBE_REENTER) in kprobe_fault_handler()
378 restore_previous_kprobe(kcb); in kprobe_fault_handler()
416 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); in kprobe_exceptions_notify() local
430 if ((kcb->kprobe_status == KPROBE_HIT_SS) || in kprobe_exceptions_notify()
431 (kcb->kprobe_status == KPROBE_REENTER)) { in kprobe_exceptions_notify()