Re: [PATCH] ftrace/x86: Use kernel identity mapping only when CONFIG_DEBUG_RODATA enabled

2014-06-05 Thread Petr Mládek
On Wed 2014-06-04 14:37:28, Steven Rostedt wrote: > On Wed, 4 Jun 2014 17:42:46 +0200 > Petr Mladek wrote: > > > This is just a tiny optimization. The remapping is not needed when the > > kernel text mapping is read write all the time. > > This is true, but I think I rather have it still do it

Re: [PATCH] ftrace/x86: Use kernel identity mapping only when CONFIG_DEBUG_RODATA enabled

2014-06-04 Thread Steven Rostedt
On Wed, 4 Jun 2014 17:42:46 +0200 Petr Mladek wrote: > This is just a tiny optimization. The remapping is not needed when the > kernel text mapping is read write all the time. This is true, but I think I rather have it still do it the same. The less variables in the code modification the better

[PATCH] ftrace/x86: Use kernel identity mapping only when CONFIG_DEBUG_RODATA enabled

2014-06-04 Thread Petr Mladek
This is just a tiny optimization. The remapping is not needed when the kernel text mapping is read write all the time. Suggested-by: Jan Beulich Signed-off-by: Petr Mladek --- arch/x86/kernel/ftrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/ftrace.c