diff options
author | Corey Minyard <cminyard@mvista.com> | 2013-07-16 00:17:17 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-09-03 14:46:27 +0200 |
commit | 05f226391d800b0b7696125eb9a13273ea9018f8 (patch) | |
tree | 06a9858c4cb5554d4cb4b338e0f6ae669ce78ba9 /arch/mips/loongson/common | |
parent | MIPS: R4k clock source initialization bug fix (diff) | |
download | linux-05f226391d800b0b7696125eb9a13273ea9018f8.tar.xz linux-05f226391d800b0b7696125eb9a13273ea9018f8.zip |
MIPS: Ftrace: Fix function tracing return address to match
Dynamic function tracing was not working on MIPS. When doing dynamic
tracing, the tracer attempts to match up the passed in address with
the one the compiler creates in the mcount tables. The MIPS code was
passing in the return address from the tracing function call, but the
compiler tables were the address of the function call. So they
wouldn't match.
Just subtracting 8 from the return address will give the address of
the function call. Easy enough.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
[david.daney@cavium.com: Adjusted code comment and patch Subject.]
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/5592/
Diffstat (limited to 'arch/mips/loongson/common')
0 files changed, 0 insertions, 0 deletions