aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/Kconfig1
-rw-r--r--arch/microblaze/kernel/mcount.S5
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 18003ca08196..cccf3adfae50 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -7,6 +7,7 @@ config MICROBLAZE
7 def_bool y 7 def_bool y
8 select HAVE_LMB 8 select HAVE_LMB
9 select HAVE_FUNCTION_TRACER 9 select HAVE_FUNCTION_TRACER
10 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
10 select USB_ARCH_HAS_EHCI 11 select USB_ARCH_HAS_EHCI
11 select ARCH_WANT_OPTIONAL_GPIOLIB 12 select ARCH_WANT_OPTIONAL_GPIOLIB
12 13
diff --git a/arch/microblaze/kernel/mcount.S b/arch/microblaze/kernel/mcount.S
index a257a1b75ed2..97eef3eea944 100644
--- a/arch/microblaze/kernel/mcount.S
+++ b/arch/microblaze/kernel/mcount.S
@@ -85,6 +85,11 @@ ENTRY(ftrace_stub)
85ENTRY(_mcount) 85ENTRY(_mcount)
86 SAVE_REGS 86 SAVE_REGS
87 swi r15, r1, 0; 87 swi r15, r1, 0;
88 /* MS: HAVE_FUNCTION_TRACE_MCOUNT_TEST begin of checking */
89 lwi r5, r0, function_trace_stop;
90 bneid r5, end;
91 nop;
92 /* MS: HAVE_FUNCTION_TRACE_MCOUNT_TEST end of checking */
88 /* MS: test function trace if is taken or not */ 93 /* MS: test function trace if is taken or not */
89 lwi r20, r0, ftrace_trace_function; 94 lwi r20, r0, ftrace_trace_function;
90 addik r6, r0, ftrace_stub; 95 addik r6, r0, ftrace_stub;