ftrace: x86 use copy to and from user functions
commitd5e92e8978fd2574e415dc2792c5eb592978243d
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 20 Aug 2008 16:55:07 +0000 (20 12:55 -0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Aug 2008 10:31:02 +0000 (21 12:31 +0200)
tree3e86d245cdd93fb71317b62d59a2bcecc357b846
parent6d2b39229ffe3191b966f57d6a5f95b4e59a6f0d
ftrace: x86 use copy to and from user functions

The modification of code is performed either by kstop_machine, before
SMP starts, or on module code before the module is executed. There is
no reason to do the modifications from assembly. The copy to and from
user functions are sufficient and produces cleaner and easier to read
code.

Thanks to Benjamin Herrenschmidt for suggesting the idea.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ftrace.c