tracing: make CALLER_ADDRx overwriteable
The current definition of CALLER_ADDRx isn't suitable for all platforms. E.g. for ARM __builtin_return_address(N) doesn't work for N > 0 and AFAIK for powerpc there are no frame pointers needed to have a working __builtin_return_address. This patch allows defining the CALLER_ADDRx macros in <asm/ftrace.h> and let these take precedence. Because now <asm/ftrace.h> is included unconditionally in <linux/ftrace.h> all archs that don't already had this include get an empty one for free. Signed-off-by: NUwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@elte.hu> Reviewed-by: NKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
Showing
arch/alpha/include/asm/ftrace.h
0 → 100644
arch/avr32/include/asm/ftrace.h
0 → 100644
arch/cris/include/asm/ftrace.h
0 → 100644
arch/h8300/include/asm/ftrace.h
0 → 100644
arch/m68k/include/asm/ftrace.h
0 → 100644
arch/mips/include/asm/ftrace.h
0 → 100644
arch/parisc/include/asm/ftrace.h
0 → 100644
arch/um/include/asm/ftrace.h
0 → 100644
arch/xtensa/include/asm/ftrace.h
0 → 100644
include/asm-frv/ftrace.h
0 → 100644
include/asm-m32r/ftrace.h
0 → 100644
include/asm-mn10300/ftrace.h
0 → 100644
想要评论请 注册 或 登录