|
@@ -10,6 +10,7 @@
|
|
|
* Author: Wu Zhangjin <wuzhangjin@gmail.com>
|
|
|
*/
|
|
|
|
|
|
+#include <asm/export.h>
|
|
|
#include <asm/regdef.h>
|
|
|
#include <asm/stackframe.h>
|
|
|
#include <asm/ftrace.h>
|
|
@@ -66,6 +67,7 @@
|
|
|
NESTED(ftrace_caller, PT_SIZE, ra)
|
|
|
.globl _mcount
|
|
|
_mcount:
|
|
|
+EXPORT_SYMBOL(_mcount)
|
|
|
b ftrace_stub
|
|
|
#ifdef CONFIG_32BIT
|
|
|
addiu sp,sp,8
|
|
@@ -114,6 +116,7 @@ ftrace_stub:
|
|
|
#else /* ! CONFIG_DYNAMIC_FTRACE */
|
|
|
|
|
|
NESTED(_mcount, PT_SIZE, ra)
|
|
|
+EXPORT_SYMBOL(_mcount)
|
|
|
PTR_LA t1, ftrace_stub
|
|
|
PTR_L t2, ftrace_trace_function /* Prepare t2 for (1) */
|
|
|
bne t1, t2, static_trace
|