|
@@ -280,24 +280,6 @@ int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm,
|
|
|
return uprobe_write_opcode(mm, vaddr, UPROBE_SWBP_INSN);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * set_orig_insn - Restore the original instruction.
|
|
|
- * @mm: the probed process address space.
|
|
|
- * @auprobe: arch specific probepoint information.
|
|
|
- * @vaddr: the virtual address to insert the opcode.
|
|
|
- *
|
|
|
- * For mm @mm, restore the original opcode (opcode) at @vaddr.
|
|
|
- * Return 0 (success) or a negative errno.
|
|
|
- *
|
|
|
- * This overrides the weak version in kernel/events/uprobes.c.
|
|
|
- */
|
|
|
-int set_orig_insn(struct arch_uprobe *auprobe, struct mm_struct *mm,
|
|
|
- unsigned long vaddr)
|
|
|
-{
|
|
|
- return uprobe_write_opcode(mm, vaddr,
|
|
|
- *(uprobe_opcode_t *)&auprobe->orig_inst[0].word);
|
|
|
-}
|
|
|
-
|
|
|
void __weak arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr,
|
|
|
void *src, unsigned long len)
|
|
|
{
|