提交 87ce18dc 编写于 作者: H He Chuyue 提交者: guzitao

sw64: remove single step setting in uprobe

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5XTMN

--------------------------------

There is no point in calling user_{enable,disable}_single_step()
since uprobe breakpoints are implemented by illegal instructions
on sw64.

The arch-specific implementation of these two functions have been
removed before, and it's time to remove the calling now.
Signed-off-by: NHe Chuyue <hechuyue@wxiat.com>
Reviewed-by: NHe Sheng <hesheng@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 b60c0204
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
#include <linux/uprobes.h> #include <linux/uprobes.h>
#include <linux/ptrace.h> #include <linux/ptrace.h>
#define UPROBE_TRAP_NR ULONG_MAX
/** /**
* arch_uprobe_analyze_insn - instruction analysis including validity and fixups. * arch_uprobe_analyze_insn - instruction analysis including validity and fixups.
* @mm: the probed address space. * @mm: the probed address space.
...@@ -54,8 +52,6 @@ int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs) ...@@ -54,8 +52,6 @@ int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs)
/* Instruction points to execute ol */ /* Instruction points to execute ol */
instruction_pointer_set(regs, utask->xol_vaddr); instruction_pointer_set(regs, utask->xol_vaddr);
user_enable_single_step(current);
return 0; return 0;
} }
...@@ -66,8 +62,6 @@ int arch_uprobe_post_xol(struct arch_uprobe *aup, struct pt_regs *regs) ...@@ -66,8 +62,6 @@ int arch_uprobe_post_xol(struct arch_uprobe *aup, struct pt_regs *regs)
/* Instruction points to execute next to breakpoint address */ /* Instruction points to execute next to breakpoint address */
instruction_pointer_set(regs, utask->vaddr + 4); instruction_pointer_set(regs, utask->vaddr + 4);
user_disable_single_step(current);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册