android_kernel_xiaomi_sdm845/arch
Uwe Kleine-König 4bf1fa5a34 [ARM] 5613/1: implement CALLER_ADDRESSx
From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

As __builtin_return_address(n) doesn't work for ARM with n > 0, the
kernel needs its own implementation.

This fixes many warnings saying:

	warning: unsupported argument to '__builtin_return_address'

The new methods and walk_stackframe must not be instrumented because
CALLER_ADDRESSx is used in the various tracers and tracing the tracer is
a bad idea.

What's currently missing is an implementation using unwind tables.  This
is not fatal though, it's just that the tracers don't get enough
information to be really useful.

Note that if both ARM_UNWIND and FRAME_POINTER are enabled,
walk_stackframe uses unwind information.  So in this case the same
implementation is used as when FRAME_POINTER is disabled.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-07-21 17:21:28 +01:00
..
alpha sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
arm [ARM] 5613/1: implement CALLER_ADDRESSx 2009-07-21 17:21:28 +01:00
avr32 sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
blackfin sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
cris sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
frv sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
h8300 sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
ia64 sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
m32r sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
m68k sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
m68knommu Remove multiple KERN_ prefixes from printk formats 2009-07-08 10:30:03 -07:00
microblaze sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
mips sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
mn10300 sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
parisc sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
powerpc Merge branch 'perfcounters-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-07-10 14:25:03 -07:00
s390 Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 2009-07-10 19:12:51 -07:00
sh sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
sparc sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
um sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
x86 Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block 2009-07-10 14:29:58 -07:00
xtensa sched: INIT_PREEMPT_COUNT 2009-07-10 14:24:05 -07:00
.gitignore
Kconfig gcov: add gcov profiling infrastructure 2009-06-18 13:03:57 -07:00