Messages in this thread Patch in this message | | | Date | Tue, 22 Sep 2015 09:03:40 +0200 | From | Jiri Olsa <> | Subject | Re: [PATCH 8/8] perf tools: Make perf depend on libbpf |
| |
On Mon, Sep 21, 2015 at 06:23:21PM -0300, Arnaldo Carvalho de Melo wrote: > From: Wang Nan <wangnan0@huawei.com> > > By adding libbpf into perf's Makefile, this patch enables perf to build > libbpf during building if libelf is found and neither NO_LIBELF nor > NO_LIBBPF is set. The newly introduced code is similar to libapi and > libtraceevent building in Makefile.perf. > > MANIFEST is also updated for 'make perf-*-src-pkg'. > > Append make_no_libbpf to tools/perf/tests/make. > > 'bpf' feature check is appended into default FEATURE_TESTS and > FEATURE_DISPLAY, so perf will check API version of bpf in > /path/to/kernel/include/uapi/linux/bpf.h. Which should not fail except > when we are trying to port this code to an old kernel. > > Error messages are also updated to notify users about the disable of BPF > support of 'perf record' if libelf is missed or BPF API check failed. > > tools/lib/bpf is added into TAG_FOLDERS to allow us to navigate on > libbpf files when working on perf using tools/perf/tags. > > Signed-off-by: Wang Nan <wangnan0@huawei.com> > Acked-by: Alexei Starovoitov <ast@plumgrid.com> > Cc: Brendan Gregg <brendan.d.gregg@gmail.com> > Cc: Daniel Borkmann <daniel@iogearbox.net> > Cc: David Ahern <dsahern@gmail.com> > Cc: He Kuang <hekuang@huawei.com> > Cc: Jiri Olsa <jolsa@kernel.org> > Cc: Kaixu Xia <xiakaixu@huawei.com> > Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> > Cc: Namhyung Kim <namhyung@kernel.org> > Cc: Paul Mackerras <paulus@samba.org> > Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> > Cc: Zefan Li <lizefan@huawei.com> > Cc: pi3orama@163.com > Link: http://lkml.kernel.org/r/1441523623-152703-3-git-send-email-wangnan0@huawei.com > Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> > --- > tools/build/Makefile.feature | 6 ++++-- > tools/perf/MANIFEST | 3 +++ > tools/perf/Makefile.perf | 19 +++++++++++++++++-- > tools/perf/config/Makefile | 19 ++++++++++++++++++- > tools/perf/tests/make | 4 +++- > 5 files changed, 45 insertions(+), 6 deletions(-) >
missing doc hunk in Makefile.perf
jirka
--- diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 8af786f458df..bb949c9e818a 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -75,6 +75,8 @@ include config/utilities.mak # Define NO_LZMA if you do not want to support compressed (xz) kernel modules # # Define NO_AUXTRACE if you do not want AUX area tracing support +# +# Define NO_BPF if you do not want BPF support # As per kernel Makefile, avoid funny character set dependencies unexport LC_ALL
| |