Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-14 Thread AKASHI Takahiro
On 03/14/2014 07:09 PM, Will Deacon wrote: On Fri, Mar 14, 2014 at 03:00:14AM +, AKASHI Takahiro wrote: On 03/14/2014 12:54 AM, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: CALLER_ADDRx returns caller's address at specified level in call stacks. They

Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-14 Thread Will Deacon
On Fri, Mar 14, 2014 at 03:00:14AM +, AKASHI Takahiro wrote: > On 03/14/2014 12:54 AM, Will Deacon wrote: > > On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: > >> CALLER_ADDRx returns caller's address at specified level in call stacks. > >> They are used for several tracers lik

Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-13 Thread AKASHI Takahiro
On 03/14/2014 03:07 AM, Steven Rostedt wrote: On Thu, 2014-03-13 at 15:54 +, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: CALLER_ADDRx returns caller's address at specified level in call stacks. They are used for several tracers like irqsoff and preemp

Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-13 Thread AKASHI Takahiro
On 03/14/2014 12:54 AM, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: 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 witho

Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-13 Thread Steven Rostedt
On Thu, 2014-03-13 at 15:54 +, Will Deacon wrote: > On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: > > 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

Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-13 Thread Will Deacon
On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: > 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. > > Please note that this im

[PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-13 Thread AKASHI Takahiro
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. Please note that this implementation assumes that we have frame pointers. (which means kernel shoul