diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2014-11-21 05:25:23 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-21 14:44:15 -0500 |
commit | 1d70be34df59f34b4562b8c047fc3a5069ce17b4 (patch) | |
tree | 5c9fff8db455eb6576657303834cce97e11a23a0 /kernel/kprobes.c | |
parent | f8b8be8a310a55856fd2c369dade08088d85df3b (diff) |
kprobes: Add IPMODIFY flag to kprobe_ftrace_ops
Add FTRACE_OPS_FL_IPMODIFY flag to kprobe_ftrace_ops
since kprobes can changes regs->ip.
Link: http://lkml.kernel.org/r/20141121102523.11844.21298.stgit@localhost.localdomain
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r-- | kernel/kprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 3995f546d0f3..831978cebf1d 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
@@ -915,7 +915,7 @@ static struct kprobe *alloc_aggr_kprobe(struct kprobe *p) | |||
915 | #ifdef CONFIG_KPROBES_ON_FTRACE | 915 | #ifdef CONFIG_KPROBES_ON_FTRACE |
916 | static struct ftrace_ops kprobe_ftrace_ops __read_mostly = { | 916 | static struct ftrace_ops kprobe_ftrace_ops __read_mostly = { |
917 | .func = kprobe_ftrace_handler, | 917 | .func = kprobe_ftrace_handler, |
918 | .flags = FTRACE_OPS_FL_SAVE_REGS, | 918 | .flags = FTRACE_OPS_FL_SAVE_REGS | FTRACE_OPS_FL_IPMODIFY, |
919 | }; | 919 | }; |
920 | static int kprobe_ftrace_enabled; | 920 | static int kprobe_ftrace_enabled; |
921 | 921 | ||