Re: [RFC 0/4] arm64: add livepatch support

2015-05-28 Thread AKASHI Takahiro
On 05/28/2015 05:58 PM, Will Deacon wrote: On Thu, May 28, 2015 at 07:08:42AM +0100, Li Bin wrote: On 2015/4/24 17:27, Jiri Kosina wrote: On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a

Re: [RFC 0/4] arm64: add livepatch support

2015-05-28 Thread Will Deacon
On Thu, May 28, 2015 at 07:08:42AM +0100, Li Bin wrote: > On 2015/4/24 17:27, Jiri Kosina wrote: > > On Fri, 24 Apr 2015, AKASHI Takahiro wrote: > > > >> This patchset enables livepatch support on arm64. > >> > >> Livepatch was merged in v4.0, and allows replacying a function dynamically > >>

Re: [RFC 0/4] arm64: add livepatch support

2015-05-28 Thread Li Bin
On 2015/4/24 17:27, Jiri Kosina wrote: > On Fri, 24 Apr 2015, AKASHI Takahiro wrote: > >> This patchset enables livepatch support on arm64. >> >> Livepatch was merged in v4.0, and allows replacying a function dynamically >> based on ftrace framework, but it also requires -mfentry option of gcc.

Re: [RFC 0/4] arm64: add livepatch support

2015-05-28 Thread Will Deacon
On Thu, May 28, 2015 at 07:08:42AM +0100, Li Bin wrote: On 2015/4/24 17:27, Jiri Kosina wrote: On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace

Re: [RFC 0/4] arm64: add livepatch support

2015-05-28 Thread Li Bin
On 2015/4/24 17:27, Jiri Kosina wrote: On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently

Re: [RFC 0/4] arm64: add livepatch support

2015-05-28 Thread AKASHI Takahiro
On 05/28/2015 05:58 PM, Will Deacon wrote: On Thu, May 28, 2015 at 07:08:42AM +0100, Li Bin wrote: On 2015/4/24 17:27, Jiri Kosina wrote: On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a

Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread Li Bin
On 2015/4/24 14:05, Masami Hiramatsu wrote: > (2015/04/24 12:24), Li Bin wrote: >> On 2015/4/24 10:44, AKASHI Takahiro wrote: >>> This patchset enables livepatch support on arm64. >>> >>> Livepatch was merged in v4.0, and allows replacying a function dynamically >>> based on ftrace framework, but

Re: Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread Masami Hiramatsu
On 2015/05/27 15:09, AKASHI Takahiro wrote: > Sorry for not replying soon. > > On 04/24/2015 06:27 PM, Jiri Kosina wrote: >> On Fri, 24 Apr 2015, AKASHI Takahiro wrote: >> >>> This patchset enables livepatch support on arm64. >>> >>> Livepatch was merged in v4.0, and allows replacying a function

Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread Jiri Kosina
On Wed, 27 May 2015, AKASHI Takahiro wrote: > > > Livepatch was merged in v4.0, and allows replacying a function dynamically > > > based on ftrace framework, but it also requires -mfentry option of gcc. > > > Currently arm64 gcc doesn't support it, but by adding a helper function to > > > ftrace,

Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread AKASHI Takahiro
Sorry for not replying soon. On 04/24/2015 06:27 PM, Jiri Kosina wrote: On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires

Re: Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread Masami Hiramatsu
On 2015/05/27 15:09, AKASHI Takahiro wrote: Sorry for not replying soon. On 04/24/2015 06:27 PM, Jiri Kosina wrote: On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically

Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread AKASHI Takahiro
Sorry for not replying soon. On 04/24/2015 06:27 PM, Jiri Kosina wrote: On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires

Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread Jiri Kosina
On Wed, 27 May 2015, AKASHI Takahiro wrote: Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently arm64 gcc doesn't support it, but by adding a helper function to ftrace, we will be

Re: [RFC 0/4] arm64: add livepatch support

2015-05-27 Thread Li Bin
On 2015/4/24 14:05, Masami Hiramatsu wrote: (2015/04/24 12:24), Li Bin wrote: On 2015/4/24 10:44, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also

Re: [RFC 0/4] arm64: add livepatch support

2015-04-24 Thread Jiri Kosina
On Fri, 24 Apr 2015, AKASHI Takahiro wrote: > This patchset enables livepatch support on arm64. > > Livepatch was merged in v4.0, and allows replacying a function dynamically > based on ftrace framework, but it also requires -mfentry option of gcc. > Currently arm64 gcc doesn't support it, but

Re: [RFC 0/4] arm64: add livepatch support

2015-04-24 Thread AKASHI Takahiro
Steve, Li and Masami, Thank you for all your comments. You pointed out the cases that I didn't think of. Let me think how I can manage the issues for a while. Probably I will talk to gcc guys. -Takahiro AKASHI On 04/24/2015 03:05 PM, Masami Hiramatsu wrote: (2015/04/24 12:24), Li Bin wrote:

Re: [RFC 0/4] arm64: add livepatch support

2015-04-24 Thread Masami Hiramatsu
(2015/04/24 12:24), Li Bin wrote: > On 2015/4/24 10:44, AKASHI Takahiro wrote: >> This patchset enables livepatch support on arm64. >> >> Livepatch was merged in v4.0, and allows replacying a function dynamically >> based on ftrace framework, but it also requires -mfentry option of gcc. >>

Re: [RFC 0/4] arm64: add livepatch support

2015-04-24 Thread Jiri Kosina
On Fri, 24 Apr 2015, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently arm64 gcc doesn't support it, but by

Re: [RFC 0/4] arm64: add livepatch support

2015-04-24 Thread AKASHI Takahiro
Steve, Li and Masami, Thank you for all your comments. You pointed out the cases that I didn't think of. Let me think how I can manage the issues for a while. Probably I will talk to gcc guys. -Takahiro AKASHI On 04/24/2015 03:05 PM, Masami Hiramatsu wrote: (2015/04/24 12:24), Li Bin wrote:

Re: [RFC 0/4] arm64: add livepatch support

2015-04-24 Thread Masami Hiramatsu
(2015/04/24 12:24), Li Bin wrote: On 2015/4/24 10:44, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently arm64

Re: [RFC 0/4] arm64: add livepatch support

2015-04-23 Thread Li Bin
On 2015/4/24 10:44, AKASHI Takahiro wrote: > This patchset enables livepatch support on arm64. > > Livepatch was merged in v4.0, and allows replacying a function dynamically > based on ftrace framework, but it also requires -mfentry option of gcc. > Currently arm64 gcc doesn't support it, but by

Re: [RFC 0/4] arm64: add livepatch support

2015-04-23 Thread Steven Rostedt
On Fri, 24 Apr 2015 11:44:05 +0900 AKASHI Takahiro wrote: > This patchset enables livepatch support on arm64. > > Livepatch was merged in v4.0, and allows replacying a function dynamically > based on ftrace framework, but it also requires -mfentry option of gcc. > Currently arm64 gcc doesn't

[RFC 0/4] arm64: add livepatch support

2015-04-23 Thread AKASHI Takahiro
This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently arm64 gcc doesn't support it, but by adding a helper function to ftrace, we will be able

Re: [RFC 0/4] arm64: add livepatch support

2015-04-23 Thread Steven Rostedt
On Fri, 24 Apr 2015 11:44:05 +0900 AKASHI Takahiro takahiro.aka...@linaro.org wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently

[RFC 0/4] arm64: add livepatch support

2015-04-23 Thread AKASHI Takahiro
This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently arm64 gcc doesn't support it, but by adding a helper function to ftrace, we will be able

Re: [RFC 0/4] arm64: add livepatch support

2015-04-23 Thread Li Bin
On 2015/4/24 10:44, AKASHI Takahiro wrote: This patchset enables livepatch support on arm64. Livepatch was merged in v4.0, and allows replacying a function dynamically based on ftrace framework, but it also requires -mfentry option of gcc. Currently arm64 gcc doesn't support it, but by