Re: [PATCH] perf/x86/intel: Mark expected switch fall-throughs

From: Nathan Chancellor
Date: Tue Jun 25 2019 - 14:05:33 EST


On Tue, Jun 25, 2019 at 10:12:42AM -0700, Kees Cook wrote:
> On Tue, Jun 25, 2019 at 09:18:46AM +0200, Peter Zijlstra wrote:
> > Can it build a kernel without patches yet? That is, why should I care
> > what LLVM does?
>
> Yes. LLVM trunk builds and boots x86 now. As for distro availability,
> AIUI, the asm-goto feature missed the 9.0 LLVM branch point, so it'll
> appear in the following release.
>
> --
> Kees Cook

I don't think that's right. LLVM 9 hasn't been branched yet so it should
make it in.

http://lists.llvm.org/pipermail/llvm-dev/2019-June/133155.html

If anyone wants to play around with it before then, we wrote a
self-contained script that will build an LLVM toolchain suitable for
kernel development:

https://github.com/ClangBuiltLinux/tc-build

Cheers,
Nathan