Lines Matching refs:api
29 p->ainsn.api.restore = (unsigned long)p->addr + offset; in arch_prepare_ss_slot()
31 patch_text(p->ainsn.api.insn, &p->opcode, 1); in arch_prepare_ss_slot()
32 patch_text((void *)((unsigned long)(p->ainsn.api.insn) + offset), in arch_prepare_ss_slot()
38 p->ainsn.api.restore = 0; in arch_prepare_simulate()
45 if (p->ainsn.api.handler) in arch_simulate_insn()
46 p->ainsn.api.handler((u32)p->opcode, in arch_simulate_insn()
83 switch (riscv_probe_decode_insn(p->addr, &p->ainsn.api)) { in arch_prepare_kprobe()
88 p->ainsn.api.insn = NULL; in arch_prepare_kprobe()
92 p->ainsn.api.insn = get_insn_slot(); in arch_prepare_kprobe()
93 if (!p->ainsn.api.insn) in arch_prepare_kprobe()
99 if (p->ainsn.api.insn) in arch_prepare_kprobe()
188 if (p->ainsn.api.insn) { in setup_singlestep()
190 slot = (unsigned long)p->ainsn.api.insn; in setup_singlestep()
230 if (cur->ainsn.api.restore != 0) in post_kprobe_handler()
231 regs->epc = cur->ainsn.api.restore; in post_kprobe_handler()
347 ((unsigned long)&cur->ainsn.api.insn[0] + GET_INSN_LENGTH(cur->opcode) == addr)) { in kprobe_single_step_handler()