diff options
author | 2023-04-11 15:17:48 +0800 | |
---|---|---|
committer | 2023-04-12 15:09:38 +0200 | |
commit | afa624ff96e8e79136a46ddaf6debb030546d7c6 (patch) | |
tree | 628d0f81b005722d00ece986b9873efa74a71f16 /arch/mips/kernel | |
parent | MIPS: Use def_bool y for ARCH_SUPPORTS_UPROBES (diff) | |
download | linux-afa624ff96e8e79136a46ddaf6debb030546d7c6.tar.gz linux-afa624ff96e8e79136a46ddaf6debb030546d7c6.tar.bz2 linux-afa624ff96e8e79136a46ddaf6debb030546d7c6.zip |
MIPS: Remove set_swbp() in uprobes.c
set_swbp() in arch/mips/kernel/uprobes.c is same with the weak version
in kernel/events/uprobes.c, remove it.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/uprobes.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/mips/kernel/uprobes.c b/arch/mips/kernel/uprobes.c index 6c063aa188e6..6b630ed4438d 100644 --- a/arch/mips/kernel/uprobes.c +++ b/arch/mips/kernel/uprobes.c @@ -207,24 +207,6 @@ unsigned long arch_uretprobe_hijack_return_addr( return ra; } -/** - * set_swbp - store breakpoint at a given address. - * @auprobe: arch specific probepoint information. - * @mm: the probed process address space. - * @vaddr: the virtual address to insert the opcode. - * - * For mm @mm, store the breakpoint instruction at @vaddr. - * Return 0 (success) or a negative errno. - * - * This version overrides the weak version in kernel/events/uprobes.c. - * It is required to handle MIPS16 and microMIPS. - */ -int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm, - unsigned long vaddr) -{ - return uprobe_write_opcode(auprobe, mm, vaddr, UPROBE_SWBP_INSN); -} - void arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, void *src, unsigned long len) { |