Re: [RFC PATCH v3 28/37] perf tools: Make perf depend on libbpf

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:53AM +, Wang Nan wrote: SNIP > else >TE_PATH=$(TRACE_EVENT_DIR) >LIB_PATH=$(LIB_DIR) > + BPF_PATH=$(BPF_DIR) > endif > > LIBTRACEEVENT = $(TE_PATH)libtraceevent.a > @@ -174,6 +177,9 @@ export LIBTRACEEVENT > LIBAPI = $(LIB_PATH)libapi.a > export L

[RFC PATCH v3 28/37] perf tools: Make perf depend on libbpf

2015-05-17 Thread Wang Nan
By adding libbpf into perf's Makefile, this patch enable perf to build libbpf during building if libelf is found and NO_LIBELF is not set. The newly introduced code is similar to libapi and libtraceevent building in Makefile.perf. Signed-off-by: Wang Nan --- tools/perf/Makefile.perf | 20 +++