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 wh

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

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-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 li

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" wh

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

2015-12-23 Thread AKASHI Takahiro
Hi, I'm the author of ftrace support on arm64(aarch64) linux. As part of ftrace, we can utilize "stack tracer" which reports the maximum usage of kernel stack: ---8<--- # cat /sys/kernel/debug/tracing/stack_max_size 4088 # cat /sys/kernel/debug/tracing/stack_trace DepthSize Locatio

Re: arm64:, Re: [RFC] Kernel livepatching support in GCC

2015-10-23 Thread AKASHI Takahiro
On 10/22/2015 07:26 PM, Szabolcs Nagy wrote: On 22/10/15 11:14, AKASHI Takahiro wrote: On 10/22/2015 06:07 PM, libin wrote: 在 2015/5/28 16:39, Maxim Kuvyrkov 写道: Our proposal is that instead of adding -mfentry/-mnop-count/-mrecord-mcount options to other architectures, we should implement a

arm64:, Re: [RFC] Kernel livepatching support in GCC

2015-10-22 Thread AKASHI Takahiro
Li, (added linux-arm-kernel to Cc.) On 10/22/2015 06:07 PM, libin wrote: 在 2015/5/28 16:39, Maxim Kuvyrkov 写道: Hi, Akashi-san and I have been discussing required GCC changes to make kernel's livepatching work for AArch64 and other architectures. At the moment livepatching is supported for