Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Disable JVMTI if no ELF support available

The build of JVMTI depends on LIBELF (-lelf). Make Makefile.conf
check this dependendancy and notify user when not present.

v2: Comma nitpicking.

Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
Tested-by: Kim Phillips <kim.phillips@arm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Paul Turner <pjt@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Simon Que <sque@chromium.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20170412170745.26620-1-davidcc@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

David Carrillo-Cisneros and committed by
Arnaldo Carvalho de Melo
e5e992a7 739cf305

+3 -1
+3 -1
tools/perf/Makefile.config
··· 274 274 NO_LIBUNWIND := 1 275 275 NO_LIBDW_DWARF_UNWIND := 1 276 276 NO_LIBBPF := 1 277 + NO_JVMTI := 1 277 278 else 278 279 ifeq ($(feature-libelf), 0) 279 280 ifeq ($(feature-glibc), 1) ··· 284 283 LIBC_SUPPORT := 1 285 284 endif 286 285 ifeq ($(LIBC_SUPPORT),1) 287 - msg := $(warning No libelf found, disables 'probe' tool and BPF support in 'perf record', please install libelf-dev, libelf-devel or elfutils-libelf-devel); 286 + msg := $(warning No libelf found. Disables 'probe' tool, jvmti and BPF support in 'perf record'. Please install libelf-dev, libelf-devel or elfutils-libelf-devel); 288 287 289 288 NO_LIBELF := 1 290 289 NO_DWARF := 1 ··· 292 291 NO_LIBUNWIND := 1 293 292 NO_LIBDW_DWARF_UNWIND := 1 294 293 NO_LIBBPF := 1 294 + NO_JVMTI := 1 295 295 else 296 296 ifneq ($(filter s% -static%,$(LDFLAGS),),) 297 297 msg := $(error No static glibc found, please install glibc-static);