mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 20:51:47 +00:00
uprobes/powerpc: Remove additional trap instruction check
prepare_uprobe() already checks if the underlying unstruction (on file) is a trap variant. We don't need to check this again. Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com>
This commit is contained in:
parent
ab07e807be
commit
3c9eb54f71
@ -53,12 +53,6 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe,
|
||||
if (addr & 0x03)
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
* We currently don't support a uprobe on an already
|
||||
* existing breakpoint instruction underneath
|
||||
*/
|
||||
if (is_trap(auprobe->ainsn))
|
||||
return -ENOTSUPP;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user