]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5c0c8b59851556b6e205409a7e4a0090c78804e
tree593e5225eab6d13b3dad9b3a197c3c1d379d0b24
parent934778e31a56dfe7dd1b2bbcd6063538c354fb9e
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