Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753269AbbF2Tlb (ORCPT ); Mon, 29 Jun 2015 15:41:31 -0400 Received: from mail.kernel.org ([198.145.29.136]:42213 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750834AbbF2TlX (ORCPT ); Mon, 29 Jun 2015 15:41:23 -0400 Date: Mon, 29 Jun 2015 16:41:18 -0300 From: Arnaldo Carvalho de Melo To: Wang Nan Cc: ast@plumgrid.com, brendan.d.gregg@gmail.com, daniel@iogearbox.net, namhyung@kernel.org, masami.hiramatsu.pt@hitachi.com, paulus@samba.org, a.p.zijlstra@chello.nl, mingo@redhat.com, jolsa@kernel.org, dsahern@gmail.com, linux-kernel@vger.kernel.org, lizefan@huawei.com, hekuang@huawei.com, xiakaixu@huawei.com, pi3orama@163.com Subject: Re: [RFC PATCH v9 02/50] tools build: Add feature check for eBPF API Message-ID: <20150629194118.GD1225@kernel.org> References: <1435328155-87115-1-git-send-email-wangnan0@huawei.com> <1435328155-87115-3-git-send-email-wangnan0@huawei.com> <20150629192151.GC1225@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150629192151.GC1225@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3535 Lines: 95 Em Mon, Jun 29, 2015 at 04:21:51PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Jun 26, 2015 at 02:15:07PM +0000, Wang Nan escreveu: > > In this patch, eBPF API is checked by compiling a c source file which > > uses fields in bpf_attr which will be used by libbpf. > > > > Signed-off-by: Wang Nan > > Acked-by: Alexei Starovoitov > > So, I just applied this and after trying: > > [acme@felicio linux]$ rm -rf /tmp/build/perf ; mkdir -p /tmp/build/perf > ; make O=/tmp/build/perf -C tools/perf install-bin > make: Entering directory `/home/acme/git/linux/tools/perf' > BUILD: Doing 'make -j4' parallel build > > Auto-detecting system features: > ... dwarf: [ on ] > ... glibc: [ on ] > ... gtk2: [ on ] > ... libaudit: [ on ] > ... libbfd: [ on ] > ... libelf: [ on ] > ... libnuma: [ on ] > ... libperl: [ on ] > ... libpython: [ on ] > ... libslang: [ on ] > ... libunwind: [ on ] > ... libdw-dwarf-unwind: [ on ] > ... zlib: [ on ] > ... lzma: [ on ] > ... bpf: [ OFF ] > > MKDIR /tmp/build/perf/util/ > CC /tmp/build/perf/util/abspath.o > > -------------------------------------------------------- > > So, what should I do now? I want to have that OFF line turned to "on", > so that I can test this stuff. > > But the changelog says nothing about it, lemme check the cover letter, > but having to do that is annoying, one expects to have instructions > related to some specific changeset in its comments... So, when such build tests fail, we can see why by looking for a file with a special name in the O= output dir: [acme@felicio linux]$ cat /tmp/build/perf/feature/test-bpf.make.output test-bpf.c:1:23: fatal error: linux/bpf.h: No such file or directory #include ^ compilation terminated. [acme@felicio linux]$ Right, one of the few things that could explain the failure, but: [acme@felicio linux]$ find . -name bpf.h ./include/linux/bpf.h ./include/uapi/linux/bpf.h [acme@felicio linux]$ So lemme try doing it in place: [acme@felicio linux]$ make -C tools/perf/ make: Entering directory `/home/acme/git/linux/tools/perf' BUILD: Doing 'make -j4' parallel build Auto-detecting system features: ... dwarf: [ on ] ... glibc: [ on ] ... gtk2: [ on ] ... libaudit: [ on ] ... libbfd: [ on ] ... libelf: [ on ] ... libnuma: [ on ] ... libperl: [ on ] ... libpython: [ on ] ... libslang: [ on ] ... libunwind: [ on ] ... libdw-dwarf-unwind: [ on ] ... zlib: [ on ] ... lzma: [ on ] ... bpf: [ OFF ] Doesn't work as well :-\ Looking at the following patches... - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/