AKASHI Takahiro eed542d696 ftrace: Make CALLER_ADDRx macros more generic
Most archs with HAVE_ARCH_CALLER_ADDR have pretty much the same
definitions of CALLER_ADDRx(n). Instead of duplicating the code for all
the archs, define a ftrace_return_address0() and
ftrace_return_address(n) that can be overwritten by the archs if they
need to do something different. Instead of 7 macros in every arch, we
now only have at most 2 (and actually only 1 as
ftrace_return_address0() should be the same for all archs).

The CALLER_ADDRx(n) will now be defined in linux/ftrace.h and use the
ftrace_return_address*(n?) macros. This removes a lot of the duplicate
code.

Link: http://lkml.kernel.org/p/1400585464-30333-1-git-send-email-takahiro.akashi@linaro.org

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2014-05-21 03:10:32 -04:00
..
2010-11-04 12:32:24 +09:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-12 22:19:10 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-01-13 16:27:38 +09:00
2012-05-19 18:50:09 +09:00
2013-01-11 21:02:57 +09:00
2014-01-23 16:36:54 -08:00
2012-03-28 18:30:03 +01:00
2009-10-14 16:42:28 +09:00
2011-07-26 16:49:47 -07:00
2012-05-18 14:52:31 +09:00
2010-11-01 09:49:04 -04:00
2012-05-21 17:54:01 +09:00
2010-10-07 14:08:55 +01:00
2012-05-24 15:03:46 +09:00
2010-06-14 15:16:53 +09:00
2013-10-14 15:38:33 +02:00
2010-03-10 16:29:48 +09:00
2012-02-23 20:19:04 -07:00
2013-11-15 09:32:18 +09:00
2011-03-31 11:26:23 -03:00
2010-01-20 16:42:52 +09:00
2009-09-11 13:19:16 +09:00
2010-04-26 19:08:55 +09:00
2011-07-26 16:49:47 -07:00
2012-05-14 13:04:08 +09:00
2011-03-31 11:26:23 -03:00