···1919 select CLONE_BACKWARDS2020 select IRQ_DOMAIN2121 select HAVE_OPROFILE2222+ select HAVE_FUNCTION_TRACER2223 help2324 Xtensa processors are 32-bit RISC machines designed by Tensilica2425 primarily for embedded systems. These processors are both
···11+/*22+ * arch/xtensa/kernel/mcount.S33+ *44+ * Xtensa specific mcount support55+ *66+ * This file is subject to the terms and conditions of the GNU General Public77+ * License. See the file "COPYING" in the main directory of this archive88+ * for more details.99+ *1010+ * Copyright (C) 2013 Tensilica Inc.1111+ */1212+1313+#include <linux/linkage.h>1414+#include <asm/ftrace.h>1515+1616+/*1717+ * Entry condition:1818+ *1919+ * a2: a0 of the caller2020+ */2121+2222+ENTRY(_mcount)2323+2424+ entry a1, 162525+2626+ movi a4, ftrace_trace_function2727+ l32i a4, a4, 02828+ movi a3, ftrace_stub2929+ bne a3, a4, 1f3030+ retw3131+3232+1: xor a7, a2, a13333+ movi a3, 0x3fffffff3434+ and a7, a7, a33535+ xor a7, a7, a13636+3737+ xor a6, a0, a13838+ and a6, a6, a33939+ xor a6, a6, a14040+ addi a6, a6, -MCOUNT_INSN_SIZE4141+ callx4 a44242+4343+ retw4444+4545+ENDPROC(_mcount)4646+4747+ENTRY(ftrace_stub)4848+ entry a1, 164949+ retw5050+ENDPROC(ftrace_stub)
+4
arch/xtensa/kernel/xtensa_ksyms.c
···124124extern long _spill_registers;125125EXPORT_SYMBOL(common_exception_return);126126EXPORT_SYMBOL(_spill_registers);127127+128128+#ifdef CONFIG_FUNCTION_TRACER129129+EXPORT_SYMBOL(_mcount);130130+#endif