diff options
| author | Masami Hiramatsu <[email protected]> | 2012-09-05 14:31:25 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2012-09-14 02:52:11 +0000 |
| commit | c6aaf4d0bb86e2154ea31a33804cec300611255f (patch) | |
| tree | 34f973a7ee081daa773b8d4cea9cffaf28bf018a /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | ftrace/x86-64: Allow to change RIP in handlers (diff) | |
| download | kernel-c6aaf4d0bb86e2154ea31a33804cec300611255f.tar.gz kernel-c6aaf4d0bb86e2154ea31a33804cec300611255f.zip | |
kprobes/x86: Fix to support jprobes on ftrace-based kprobe
Fix kprobes/x86 to support jprobes on ftrace-based kprobes.
Because of -mfentry support of ftrace, ftrace is now put
on the beginning of function where jprobes are put.
Originally ftrace-based kprobes doesn't support jprobe
because it will change regs->ip and ftrace doesn't support
changing IP and ftrace itself doesn't conflict jprobe.
However, ftrace -mfentry support moves mcount call on the
top of functions where jprobes are put. This means that
jprobe always conflicts with ftrace-based kprobe and fails.
This patch allows ftrace-based kprobes to support jprobes
by allowing to modify regs->ip and kprobes breakpoint
handler also allows to skip singlestepping because there
is a ftrace call (not an original instruction).
Link: http://lkml.kernel.org/r/[email protected]
Reported-by: Fengguang Wu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
