ftrace.h (6548698f929814375fa5d62ae1db96959b0418c1) | ftrace.h (3b6c223b1b97ad60bbb0f4efda57d649414ac2a2) |
---|---|
1#ifndef _ASM_ARM_FTRACE 2#define _ASM_ARM_FTRACE 3 4#ifdef CONFIG_FUNCTION_TRACER | 1#ifndef _ASM_ARM_FTRACE 2#define _ASM_ARM_FTRACE 3 4#ifdef CONFIG_FUNCTION_TRACER |
5#define MCOUNT_ADDR ((long)(mcount)) | 5#define MCOUNT_ADDR ((unsigned long)(__gnu_mcount_nc)) |
6#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ 7 8#ifndef __ASSEMBLY__ 9extern void mcount(void); 10extern void __gnu_mcount_nc(void); | 6#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ 7 8#ifndef __ASSEMBLY__ 9extern void mcount(void); 10extern void __gnu_mcount_nc(void); |
11 12#ifdef CONFIG_DYNAMIC_FTRACE 13struct dyn_arch_ftrace { 14#ifdef CONFIG_OLD_MCOUNT 15 bool old_mcount; |
|
11#endif | 16#endif |
17}; |
|
12 | 18 |
19static inline unsigned long ftrace_call_adjust(unsigned long addr) 20{ 21 return addr; 22} 23 24extern void ftrace_caller_old(void); 25extern void ftrace_call_old(void); |
|
13#endif 14 | 26#endif 27 |
28#endif 29 30#endif 31 |
|
15#ifndef __ASSEMBLY__ 16 17#if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) 18/* 19 * return_address uses walk_stackframe to do it's work. If both 20 * CONFIG_FRAME_POINTER=y and CONFIG_ARM_UNWIND=y walk_stackframe uses unwind 21 * information. For this to work in the function tracer many functions would 22 * have to be marked with __notrace. So for now just depend on --- 27 unchanged lines hidden --- | 32#ifndef __ASSEMBLY__ 33 34#if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) 35/* 36 * return_address uses walk_stackframe to do it's work. If both 37 * CONFIG_FRAME_POINTER=y and CONFIG_ARM_UNWIND=y walk_stackframe uses unwind 38 * information. For this to work in the function tracer many functions would 39 * have to be marked with __notrace. So for now just depend on --- 27 unchanged lines hidden --- |