mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 02:51:44 +00:00
181f817eaa
Since gcc 4.4 the name and calling convention for function profiling on ARM changed. With this patch both types are supported. See http://sourceware.org/ml/libc-ports/2008-04/msg00009.html for some details. Lightly-Tested-by: Anand Gadiyar <gadiyar@ti.com> Tested-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
16 lines
297 B
C
16 lines
297 B
C
#ifndef _ASM_ARM_FTRACE
|
|
#define _ASM_ARM_FTRACE
|
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
|
#define MCOUNT_ADDR ((long)(mcount))
|
|
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern void mcount(void);
|
|
extern void __gnu_mcount_nc(void);
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif /* _ASM_ARM_FTRACE */
|