arm64: ftrace: Add CALLER_ADDRx macros
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 30 Apr 2014 09:54:35 +0000 (10:54 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 29 May 2014 08:08:33 +0000 (09:08 +0100)
commit3711784ece66d39352a0dbb6da40e097a77da057
tree274c2bf173272a72bf510207797eb0d72da18cec
parentbd7d38dbdf356e75eb3b1699158c9b8021fd6784
arm64: ftrace: Add CALLER_ADDRx macros

CALLER_ADDRx returns caller's address at specified level in call stacks.
They are used for several tracers like irqsoff and preemptoff.
Strange to say, however, they are refered even without FTRACE.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/ftrace.h
arch/arm64/kernel/Makefile
arch/arm64/kernel/return_address.c [new file with mode: 0644]