kprobes: Skip preparing optprobe if the probe is ftrace-based
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 19 Apr 2017 12:52:25 +0000 (18:22 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Apr 2017 13:18:54 +0000 (23:18 +1000)
commita460246c70d1ac25a0717112e7a167240c7aca1a
tree593e5225eab6d13b3dad9b3a197c3c1d379d0b24
parent97da3854c526d3a6ee05c849c96e48d21527606c
kprobes: Skip preparing optprobe if the probe is ftrace-based

Skip preparing optprobe if the probe is ftrace-based, since anyway, it
must not be optimized (or already optimized by ftrace).

Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
kernel/kprobes.c