summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/ftrace.h
diff options
context:
space:
mode:
authorYi Li2009-09-15 11:24:31 +0200
committerMike Frysinger2009-09-17 04:10:52 +0200
commit5bf9cbef9972f851172391a37261b12bba63f733 (patch)
tree6ca84de9aea486b563c53a0a9f9be0950f74c990 /arch/blackfin/include/asm/ftrace.h
parentBlackfin: fix elf_fpregset_t definition (diff)
downloadkernel-qcow2-linux-5bf9cbef9972f851172391a37261b12bba63f733.tar.gz
kernel-qcow2-linux-5bf9cbef9972f851172391a37261b12bba63f733.tar.xz
kernel-qcow2-linux-5bf9cbef9972f851172391a37261b12bba63f733.zip
Blackfin: update ftrace for latest toolchain
The mcount support that was finally added to the Blackfin gcc port isn't exactly the same as what ftrace was developed against. Now that the final gcc version is in place, update the ftrace code to match. While updating this, fix the swapped arguments to the tracer (signature is (ip, parent_ip) while we were passing (parent_ip, ip)). Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/ftrace.h')
-rw-r--r--arch/blackfin/include/asm/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/ftrace.h b/arch/blackfin/include/asm/ftrace.h
index 8643680f0f78..90c9b400ba6d 100644
--- a/arch/blackfin/include/asm/ftrace.h
+++ b/arch/blackfin/include/asm/ftrace.h
@@ -8,6 +8,6 @@
#ifndef __ASM_BFIN_FTRACE_H__
#define __ASM_BFIN_FTRACE_H__
-#define MCOUNT_INSN_SIZE 8 /* sizeof mcount call: LINK + CALL */
+#define MCOUNT_INSN_SIZE 6 /* sizeof "[++sp] = rets; call __mcount;" */
#endif