]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Put back -pg to tsc.o and add no GCOV to vread_tsc_64.o
authorSteven Rostedt <srostedt@redhat.com>
Sat, 28 May 2011 03:11:24 +0000 (23:11 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 28 May 2011 03:47:16 +0000 (23:47 -0400)
commit198233067d15bc88603d4279b950468053456877
treec34f3e5c37b706accec93a2dab629a1b96d57a58
parent43bbf725af38fd2ff5ba8e4d073e890b9415bb2f
x86: Put back -pg to tsc.o and add no GCOV to vread_tsc_64.o

The commit 433e3517e708da2e7899f90d7bc3a4228d8d039b
    Author: Andy Lutomirski <luto@MIT.EDU>
    x86-64: Move vread_tsc into a new file with sensible options

Removed the -pg from tsc.o which caused the function graph tracer
to go into an infinite function call recursion as it uses the tsc
internally outside its recursion protection, thus tracing the tsc
breaks the function graph tracer.

This commit also added the file vread_tsc_64.c that gets used
by vdso but failed to prevent GCOV from monkeying with it,
causing userspace to try to access kernel data when GCOV was
enabled.

Thanks to Thomas Gleixner for pointing out GCOV as the likely
culprit that added strange kernel accesses into the vread_tsc()
call.

Cc: Author: Andy Lutomirski <luto@MIT.EDU>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/Makefile