MIPS: tracing: move insn_has_delay_slot to a shared header
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Fri, 30 Sep 2016 09:33:45 +0000 (11:33 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 6 Oct 2016 15:36:39 +0000 (17:36 +0200)
commite3031b32840c1bee228c58bb284ebc05f97249c7
treea082e9c2338da07cfacd7b716297964f149469c6
parentd66698e0834657161314050b6c99c3eba36b180a
MIPS: tracing: move insn_has_delay_slot to a shared header

Currently both kprobes and uprobes code have definitions of the
insn_has_delay_slot method. Move it to a separate header as an inline
method that each probe-specific method can later use.
No functional change intended, although the methods slightly varied in
the constraints they set for the methods - the uprobes one was chosen as
it is slightly more specific when filtering opcode fields.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14335/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/kprobes.c
arch/mips/kernel/probes-common.h [new file with mode: 0644]
arch/mips/kernel/uprobes.c