projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8b8be8
)
kprobes: Add IPMODIFY flag to kprobe_ftrace_ops
author
Masami Hiramatsu
<masami.hiramatsu.pt@hitachi.com>
Fri, 21 Nov 2014 10:25:23 +0000
(
05:25
-0500)
committer
Steven Rostedt
<rostedt@goodmis.org>
Fri, 21 Nov 2014 19:44:15 +0000
(14:44 -0500)
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>
kernel/kprobes.c
patch
|
blob
|
history
diff --git
a/kernel/kprobes.c
b/kernel/kprobes.c
index 3995f546d0f3f9c7bc845e7053f7a099088108a2..831978cebf1da5e6ec858fca2ab654ad17c9c648 100644
(file)
--- a/
kernel/kprobes.c
+++ b/
kernel/kprobes.c
@@
-915,7
+915,7
@@
static struct kprobe *alloc_aggr_kprobe(struct kprobe *p)
#ifdef CONFIG_KPROBES_ON_FTRACE
static struct ftrace_ops kprobe_ftrace_ops __read_mostly = {
.func = kprobe_ftrace_handler,
- .flags = FTRACE_OPS_FL_SAVE_REGS,
+ .flags = FTRACE_OPS_FL_SAVE_REGS
| FTRACE_OPS_FL_IPMODIFY
,
};
static int kprobe_ftrace_enabled;