From: Steven Rostedt Date: Thu, 23 Sep 2010 02:22:25 +0000 (-0400) Subject: tracing/x86: Don't use mcount in kvmclock.c X-Git-Tag: v2.6.33.8~474 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db0500894559756a53aefe16ec3319529d69f050;p=karo-tx-linux.git tracing/x86: Don't use mcount in kvmclock.c commit 258af47479980d8238a04568b94a4e55aa1cb537 upstream. The guest can use the paravirt clock in kvmclock.c which is used by sched_clock(), which in turn is used by the tracing mechanism for timestamps, which leads to infinite recursion. Disable mcount/tracing for kvmclock.o. Cc: Jeremy Fitzhardinge Cc: Avi Kivity Signed-off-by: Steven Rostedt Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index cb7c0215de2e..52822773faba 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -12,6 +12,7 @@ CFLAGS_REMOVE_tsc.o = -pg CFLAGS_REMOVE_rtc.o = -pg CFLAGS_REMOVE_paravirt-spinlocks.o = -pg CFLAGS_REMOVE_pvclock.o = -pg +CFLAGS_REMOVE_kvmclock.o = -pg CFLAGS_REMOVE_ftrace.o = -pg CFLAGS_REMOVE_early_printk.o = -pg endif