Lines Matching refs:api
30 p->ainsn.api.restore = (unsigned long)p->addr + len; in arch_prepare_ss_slot()
32 patch_text_nosync(p->ainsn.api.insn, &p->opcode, len); in arch_prepare_ss_slot()
33 patch_text_nosync(p->ainsn.api.insn + len, &insn, GET_INSN_LENGTH(insn)); 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()
180 if (p->ainsn.api.insn) { in setup_singlestep()
182 slot = (unsigned long)p->ainsn.api.insn; in setup_singlestep()
222 if (cur->ainsn.api.restore != 0) in post_kprobe_handler()
223 regs->epc = cur->ainsn.api.restore; in post_kprobe_handler()
339 ((unsigned long)&cur->ainsn.api.insn[0] + GET_INSN_LENGTH(cur->opcode) == addr)) { in kprobe_single_step_handler()