[llvmlinux] [PATCH] tracing: x86: Mark TRACING_SUPPORT as BROKEN

Sedat Dilek sedat.dilek at gmail.com
Thu Jul 25 12:21:44 UTC 2013


The build on x86_64 breaks with tracing support enabled.

For more details see this thread on llvmlinux ML:
"[arch/x86/kernel/head64.c] In function `early_make_pgtable': undefined reference to `mcount'"

Tested with pre-built toolchain v3.3 (AMD64) from <llvm.org> against Linux v3.10.

[ Untested: Drop changes to ftrace.h in 0033 from arch/x86_64/patches and rebuild. ]

[1] http://git.linuxfoundation.org/?p=llvmlinux.git;a=blob;f=arch/x86_64/patches/0033-Various-fixes-in-arch-x86-include-asm.patch

Cc: PaX Team <pageexec at gmail.com>
Signed-off-by: Sedat Dilek <sedat.dilek at gmail.com>
---
 kernel/trace/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 015f85a..8ba949b 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -125,6 +125,7 @@ config TRACING_SUPPORT
 	# irqflags tracing for your architecture.
 	depends on TRACE_IRQFLAGS_SUPPORT || PPC32
 	depends on STACKTRACE_SUPPORT
+	depends on BROKEN && (X86_32 || X86_64)
 	default y
 
 if TRACING_SUPPORT
-- 
1.8.3.4



More information about the LLVMLinux mailing list