Re: [PATCH v2 1/8] x86: speed up int3-based patching using less paranoid write

2013-11-12 Thread Petr Mladek
Steven Rostedt píše v Pá 08. 11. 2013 v 07:43 -0500: > On Fri, 08 Nov 2013 21:04:26 +0900 > Masami Hiramatsu wrote: > > > (2013/11/08 18:12), Petr Mladek wrote: > > > This change is inspired by the int3-based patching code used in > > > ftrace. See the commit fd4363fff3d9 (x86: Introduce int3 > >

Re: [PATCH v2 1/8] x86: speed up int3-based patching using less paranoid write

2013-11-08 Thread Steven Rostedt
On Fri, 08 Nov 2013 21:04:26 +0900 Masami Hiramatsu wrote: > > static void do_sync_core(void *info) > > { > > sync_core(); > > @@ -648,15 +687,15 @@ void *text_poke_bp(void *addr, const void *opcode, > > size_t len, void *handler) > > */ > > smp_wmb(); > > > > - text_poke(add

Re: [PATCH v2 1/8] x86: speed up int3-based patching using less paranoid write

2013-11-08 Thread Steven Rostedt
On Fri, 08 Nov 2013 21:04:26 +0900 Masami Hiramatsu wrote: > (2013/11/08 18:12), Petr Mladek wrote: > > This change is inspired by the int3-based patching code used in > > ftrace. See the commit fd4363fff3d9 (x86: Introduce int3 > > (breakpoint)-based instruction patching). > > > > When trying t

Re: [PATCH v2 1/8] x86: speed up int3-based patching using less paranoid write

2013-11-08 Thread Masami Hiramatsu
(2013/11/08 18:12), Petr Mladek wrote: > This change is inspired by the int3-based patching code used in > ftrace. See the commit fd4363fff3d9 (x86: Introduce int3 > (breakpoint)-based instruction patching). > > When trying to use text_poke_bp in ftrace, the result was slower than > the original i