Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-18 Thread AKASHI Takahiro
On 01/16/2016 01:56 AM, Will Deacon wrote: On Wed, Jan 13, 2016 at 05:13:29PM +0900, AKASHI Takahiro wrote: On 01/13/2016 03:04 AM, Will Deacon wrote: On Tue, Jan 12, 2016 at 03:11:29PM +0900, AKASHI Takahiro wrote: On 01/09/2016 12:53 AM, Will Deacon wrote: I still don't understand why you c

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-15 Thread Will Deacon
On Wed, Jan 13, 2016 at 05:13:29PM +0900, AKASHI Takahiro wrote: > On 01/13/2016 03:04 AM, Will Deacon wrote: > >On Tue, Jan 12, 2016 at 03:11:29PM +0900, AKASHI Takahiro wrote: > >>On 01/09/2016 12:53 AM, Will Deacon wrote: > >>>I still don't understand why you can't use fstack-usage. Can you plea

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-13 Thread AKASHI Takahiro
On 01/13/2016 03:04 AM, Will Deacon wrote: On Tue, Jan 12, 2016 at 03:11:29PM +0900, AKASHI Takahiro wrote: Will, On 01/09/2016 12:53 AM, Will Deacon wrote: On Fri, Jan 08, 2016 at 02:36:32PM +0900, AKASHI Takahiro wrote: On 01/07/2016 11:56 PM, Richard Earnshaw (lists) wrote: On 07/01/16 14

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-12 Thread Will Deacon
On Tue, Jan 12, 2016 at 03:11:29PM +0900, AKASHI Takahiro wrote: > Will, > > On 01/09/2016 12:53 AM, Will Deacon wrote: > >On Fri, Jan 08, 2016 at 02:36:32PM +0900, AKASHI Takahiro wrote: > >>On 01/07/2016 11:56 PM, Richard Earnshaw (lists) wrote: > >>>On 07/01/16 14:22, Will Deacon wrote: > O

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-12 Thread AKASHI Takahiro
On 01/12/2016 05:22 PM, Andrew Pinski wrote: On Tue, Jan 12, 2016 at 12:18 AM, Eric Botcazou wrote: -fstack-usage does not work when there are VLAs or alloca's. So there is no way to figure that part out without analysis of the actual assembly code. No, -fstack-usage always works, i.e. its o

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-12 Thread Andrew Pinski
On Tue, Jan 12, 2016 at 12:18 AM, Eric Botcazou wrote: >> -fstack-usage does not work when there are VLAs or alloca's. So there >> is no way to figure that part out without analysis of the actual >> assembly code. > > No, -fstack-usage always works, i.e. its output can always be relied upon; > wh

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-12 Thread Eric Botcazou
> -fstack-usage does not work when there are VLAs or alloca's. So there > is no way to figure that part out without analysis of the actual > assembly code. No, -fstack-usage always works, i.e. its output can always be relied upon; when it cannot compute the maximum stack usage, it prints "unbound

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-11 Thread Andrew Pinski
On Mon, Jan 11, 2016 at 10:11 PM, AKASHI Takahiro wrote: > Will, > > > On 01/09/2016 12:53 AM, Will Deacon wrote: >> >> On Fri, Jan 08, 2016 at 02:36:32PM +0900, AKASHI Takahiro wrote: >>> >>> On 01/07/2016 11:56 PM, Richard Earnshaw (lists) wrote: On 07/01/16 14:22, Will Deacon wrote: >

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-11 Thread AKASHI Takahiro
Will, On 01/09/2016 12:53 AM, Will Deacon wrote: On Fri, Jan 08, 2016 at 02:36:32PM +0900, AKASHI Takahiro wrote: On 01/07/2016 11:56 PM, Richard Earnshaw (lists) wrote: On 07/01/16 14:22, Will Deacon wrote: On Thu, Dec 24, 2015 at 04:57:54PM +0900, AKASHI Takahiro wrote: So I'd like to intr

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-08 Thread Will Deacon
On Fri, Jan 08, 2016 at 02:36:32PM +0900, AKASHI Takahiro wrote: > On 01/07/2016 11:56 PM, Richard Earnshaw (lists) wrote: > >On 07/01/16 14:22, Will Deacon wrote: > >>On Thu, Dec 24, 2015 at 04:57:54PM +0900, AKASHI Takahiro wrote: > >>>So I'd like to introduce a function prologue analyzer to dete

Re: [RFC][AArch64] function prologue analyzer in linux kernel

2016-01-07 Thread AKASHI Takahiro
On 01/07/2016 11:56 PM, Richard Earnshaw (lists) wrote: On 07/01/16 14:22, Will Deacon wrote: Akashi, On Thu, Dec 24, 2015 at 04:57:54PM +0900, AKASHI Takahiro wrote: I'm the author of ftrace support on arm64(aarch64) linux. As part of ftrace, we can utilize "stack tracer" which reports the ma