Lines Matching refs:p

20 int __kprobes arch_prepare_kprobe(struct kprobe *p)  in arch_prepare_kprobe()  argument
22 if ((unsigned long)p->addr & 3UL) in arch_prepare_kprobe()
25 p->ainsn.insn = get_insn_slot(); in arch_prepare_kprobe()
26 if (!p->ainsn.insn) in arch_prepare_kprobe()
33 p->opcode = *p->addr; in arch_prepare_kprobe()
34 p->ainsn.insn[0] = p->opcode; in arch_prepare_kprobe()
35 p->ainsn.insn[1] = PARISC_KPROBES_BREAK_INSN2; in arch_prepare_kprobe()
37 flush_insn_slot(p); in arch_prepare_kprobe()
41 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() argument
43 if (!p->ainsn.insn) in arch_remove_kprobe()
46 free_insn_slot(p->ainsn.insn, 0); in arch_remove_kprobe()
47 p->ainsn.insn = NULL; in arch_remove_kprobe()
50 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() argument
52 patch_text(p->addr, PARISC_KPROBES_BREAK_INSN); in arch_arm_kprobe()
55 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() argument
57 patch_text(p->addr, p->opcode); in arch_disarm_kprobe()
72 static inline void __kprobes set_current_kprobe(struct kprobe *p) in set_current_kprobe() argument
74 __this_cpu_write(current_kprobe, p); in set_current_kprobe()
77 static void __kprobes setup_singlestep(struct kprobe *p, in setup_singlestep() argument
82 instruction_pointer_set(regs, (unsigned long)p->ainsn.insn); in setup_singlestep()
87 struct kprobe *p; in parisc_kprobe_break_handler() local
93 p = get_kprobe((unsigned long *)regs->iaoq[0]); in parisc_kprobe_break_handler()
95 if (!p) { in parisc_kprobe_break_handler()
109 set_current_kprobe(p); in parisc_kprobe_break_handler()
110 kprobes_inc_nmissed_count(p); in parisc_kprobe_break_handler()
111 setup_singlestep(p, kcb, regs); in parisc_kprobe_break_handler()
116 set_current_kprobe(p); in parisc_kprobe_break_handler()
125 if (!p->pre_handler || !p->pre_handler(p, regs)) { in parisc_kprobe_break_handler()
126 setup_singlestep(p, kcb, regs); in parisc_kprobe_break_handler()
138 struct kprobe *p = kprobe_running(); in parisc_kprobe_ss_handler() local
140 if (!p) in parisc_kprobe_ss_handler()
143 if (regs->iaoq[0] != (unsigned long)p->ainsn.insn+4) in parisc_kprobe_ss_handler()
158 if (p->post_handler) in parisc_kprobe_ss_handler()
159 p->post_handler(p, regs, 0); in parisc_kprobe_ss_handler()
187 static int __kprobes trampoline_probe_handler(struct kprobe *p,
194 static int __kprobes trampoline_probe_handler(struct kprobe *p, in trampoline_probe_handler() argument
218 int __kprobes arch_trampoline_kprobe(struct kprobe *p) in arch_trampoline_kprobe() argument
220 return p->addr == trampoline_p.addr; in arch_trampoline_kprobe()