[llvmlinux] [PATCH v2 for-3.10] tracing: x86: Mark TRACING_SUPPORT as BROKEN

Jan-Simon Möller dl9pf at gmx.de
Fri Jul 26 11:18:47 UTC 2013


Considering it as local workaround.
-- 

Dipl.-Ing.
Jan-Simon Möller

jansimon.moeller at gmx.de
On Friday 26 July 2013 12:30:29 Sedat Dilek wrote:
> 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'"
> 
> I tested also dropping changes to ftrace.h in 0033 from arch/x86_64/patches
> as suggested by pageexec from PaX Team, but the build is still broken.
> 
> For now, I have disabled tracing support for x86 at all.
> It might be a good idea to do this for all supported arches.
> 
> Tested with pre-built toolchain v3.3 (AMD64) from <llvm.org> against Linux
> v3.10.
> 
> [1]
> http://git.linuxfoundation.org/?p=llvmlinux.git;a=blob;f=arch/x86_64/patche
> s/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


More information about the LLVMLinux mailing list