From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755051AbcAVVJp (ORCPT ); Fri, 22 Jan 2016 16:09:45 -0500 Received: from mx6-phx2.redhat.com ([209.132.183.39]:57622 "EHLO mx6-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbcAVVJl (ORCPT ); Fri, 22 Jan 2016 16:09:41 -0500 Date: Fri, 22 Jan 2016 16:09:08 -0500 (EST) From: David Airlie To: Alexei Starovoitov Cc: Adam Jackson , Arnaldo Carvalho de Melo , Wang Nan , ast@kernel.org, linux-kernel@vger.kernel.org, Daniel Borkmann , Li Zefan , pi3orama@163.com Message-ID: <1814886062.16762783.1453496948793.JavaMail.zimbra@redhat.com> In-Reply-To: <20160122174230.GB10247@ast-mbp.thefacebook.com> References: <1453454841-232334-1-git-send-email-wangnan0@huawei.com> <1453454841-232334-2-git-send-email-wangnan0@huawei.com> <20160122154050.GH4034@kernel.org> <20160122170749.GA9608@ast-mbp.thefacebook.com> <20160122172222.GI4034@kernel.org> <1453484142.2587.7.camel@redhat.com> <20160122174230.GB10247@ast-mbp.thefacebook.com> Subject: Re: clang --target=bpf missing on f23 was: Re: [PATCH 1/2] perf test: Add libbpf relocation checker MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.64.51.81] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF43 (Linux)/8.0.6_GA_5922) Thread-Topic: clang --target=bpf missing on f23 was: Re: [PATCH 1/2] perf test: Add libbpf relocation checker Thread-Index: bQhlu5HYjldz10DYOlFHEvKdnsiXCg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Original Message ----- > From: "Alexei Starovoitov" > To: "Adam Jackson" > Cc: "Arnaldo Carvalho de Melo" , "Wang Nan" , ast@kernel.org, > linux-kernel@vger.kernel.org, "Daniel Borkmann" , "Li Zefan" , > pi3orama@163.com, "Dave Airlie" > Sent: Saturday, 23 January, 2016 3:42:30 AM > Subject: Re: clang --target=bpf missing on f23 was: Re: [PATCH 1/2] perf test: Add libbpf relocation checker > > On Fri, Jan 22, 2016 at 12:35:42PM -0500, Adam Jackson wrote: > > On Fri, 2016-01-22 at 14:22 -0300, Arnaldo Carvalho de Melo wrote: > > > > > the 'bpf' target for clang is being used together with perf to > > > build scriptlets into object code that then gets uploaded to the kernel > > > via sys_bpf(), was the decision not to include 'bpf' just an accident? > > > > I wouldn't call it a "decision", that would imply intent. The main > > reason I explicitly list targets for llvm is to limit the CPU backends > > to arches Fedora actually runs on (which itself is because I really > > only care about llvmpipe, and am only touching llvm because it's in my > > way). Had no idea there was a bpf backend, so never thought to enable > > it. > > > > llvm-3.7.0-4.fc2{3,4} are building now with the bpf backend enabled, > > I'll create an update for F23 when it's built. > > thanks. > if you want to reduce the size of binaries, you can probably disable > nvptx/amdgcn/r600, since I doubt fedora ships with appropriate sdks > that can take advantage of that. > amdgcn is the other reason we ship llvm, we could probably drop nvptx. Dave. >