diff options
| author | Petr Mladek <[email protected]> | 2015-02-20 14:07:30 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-02-21 09:33:31 +0000 |
| commit | 2a6730c8b6e075adf826a89a3e2caa705807afdb (patch) | |
| tree | 05620565e26b29ba355b8241b2b80c6c0189ef52 /tools/perf/util/annotate.c | |
| parent | kprobes/x86: Use 5-byte NOP when the code might be modified by ftrace (diff) | |
| download | kernel-2a6730c8b6e075adf826a89a3e2caa705807afdb.tar.gz kernel-2a6730c8b6e075adf826a89a3e2caa705807afdb.zip | |
kprobes/x86: Check for invalid ftrace location in __recover_probed_insn()
__recover_probed_insn() should always be called from an address
where an instructions starts. The check for ftrace_location()
might help to discover a potential inconsistency.
This patch adds WARN_ON() when the inconsistency is detected.
Also it adds handling of the situation when the original code
can not get recovered.
Suggested-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Cc: Ananth NMavinakayanahalli <[email protected]>
Cc: Anil S Keshavamurthy <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions
