Lines Matching defs:kcb
192 static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb)
194 kcb->prev_kprobe.kp = kprobe_running();
195 kcb->prev_kprobe.status = kcb->kprobe_status;
198 static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb)
200 __this_cpu_write(current_kprobe, kcb->prev_kprobe.kp);
201 kcb->kprobe_status = kcb->prev_kprobe.status;
224 singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb)
239 struct kprobe_ctlblk *kcb;
241 kcb = get_kprobe_ctlblk();
269 switch (kcb->kprobe_status) {
275 save_previous_kprobe(kcb);
277 kcb->kprobe_status = KPROBE_REENTER;
278 singlestep(p, regs, kcb);
279 restore_previous_kprobe(kcb);
293 kcb->kprobe_status = KPROBE_HIT_ACTIVE;
303 kcb->kprobe_status = KPROBE_HIT_SS;
304 singlestep(p, regs, kcb);
306 kcb->kprobe_status = KPROBE_HIT_SSDONE;
334 struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();
336 switch (kcb->kprobe_status) {
347 if (kcb->kprobe_status == KPROBE_REENTER) {
348 restore_previous_kprobe(kcb);