From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752170AbbFBWMJ (ORCPT ); Tue, 2 Jun 2015 18:12:09 -0400 Received: from mail.kernel.org ([198.145.29.136]:33654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922AbbFBWME (ORCPT ); Tue, 2 Jun 2015 18:12:04 -0400 Date: Tue, 2 Jun 2015 19:11:56 -0300 From: Arnaldo Carvalho de Melo To: Wang Nan Cc: namhyung@kernel.org, alexei.starovoitov@gmail.com, masami.hiramatsu.pt@hitachi.com, paulus@samba.org, a.p.zijlstra@chello.nl, mingo@redhat.com, jolsa@kernel.org, dsahern@gmail.com, daniel@iogearbox.net, brendan.d.gregg@gmail.com, lizefan@huawei.com, hekuang@huawei.com, xiakaixu@huawei.com, linux-kernel@vger.kernel.org, pi3orama@163.com Subject: Re: [RFC PATCH v5 03/30] tools build: Add feature check for eBPF API Message-ID: <20150602221156.GT624@kernel.org> References: <1433144296-74992-1-git-send-email-wangnan0@huawei.com> <1433144296-74992-4-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433144296-74992-4-git-send-email-wangnan0@huawei.com> 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 Em Mon, Jun 01, 2015 at 07:37:49AM +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. Something is missing, where is the message saying that I need to install something to have bpf support? Look at the liblzma one at config/Makefile:556: [acme@zoo linux]$ rm -rf /tmp/build/perf ; mkdir -p /tmp/build/perf ; m make: Entering directory '/home/git/linux/tools/perf' BUILD: Doing 'make -j4' parallel build Auto-detecting system features: ... dwarf: [ OFF ] ... glibc: [ on ] ... gtk2: [ on ] ... libaudit: [ OFF ] ... libbfd: [ on ] ... libelf: [ OFF ] ... libnuma: [ OFF ] ... libperl: [ on ] ... libpython: [ OFF ] ... libslang: [ OFF ] ... libunwind: [ OFF ] ... libdw-dwarf-unwind: [ OFF ] ... zlib: [ OFF ] ... lzma: [ OFF ] ... bpf: [ OFF ] config/Makefile:245: No libelf found, disables 'probe' tool, please install elfutils-libelf-devel/libelf-dev config/Makefile:325: Disabling post unwind, no support found. config/Makefile:366: No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev config/Makefile:381: slang not found, disables TUI support. Please install slang-devel or libslang-dev config/Makefile:466: No 'Python.h' (for Python 2.x support) was found: disables Python support - please install python-devel/python-dev config/Makefile:556: No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev config/Makefile:569: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev MKDIR /tmp/build/perf/util/ CC /tmp/build/perf/util/abspath.o Applied the first two patches in this series, will push them soon. - Arnaldo