diff options
author | David Carrillo-Cisneros <davidcc@google.com> | 2017-04-12 13:07:45 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-13 10:47:43 -0400 |
commit | e5e992a7c184c2121adf37bdf292a516af81dbbb (patch) | |
tree | 7f25e9f230fe0324585ab5c7b9bb8311eab60f58 /tools/perf | |
parent | 739cf305512cb852e852099f9e12dd66bf4df076 (diff) |
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>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Makefile.config | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index cfd6015229a2..8354d04b392f 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config | |||
@@ -274,6 +274,7 @@ ifdef NO_LIBELF | |||
274 | NO_LIBUNWIND := 1 | 274 | NO_LIBUNWIND := 1 |
275 | NO_LIBDW_DWARF_UNWIND := 1 | 275 | NO_LIBDW_DWARF_UNWIND := 1 |
276 | NO_LIBBPF := 1 | 276 | NO_LIBBPF := 1 |
277 | NO_JVMTI := 1 | ||
277 | else | 278 | else |
278 | ifeq ($(feature-libelf), 0) | 279 | ifeq ($(feature-libelf), 0) |
279 | ifeq ($(feature-glibc), 1) | 280 | ifeq ($(feature-glibc), 1) |
@@ -283,7 +284,7 @@ else | |||
283 | LIBC_SUPPORT := 1 | 284 | LIBC_SUPPORT := 1 |
284 | endif | 285 | endif |
285 | ifeq ($(LIBC_SUPPORT),1) | 286 | ifeq ($(LIBC_SUPPORT),1) |
286 | msg := $(warning No libelf found, disables 'probe' tool and BPF support in 'perf record', please install libelf-dev, libelf-devel or elfutils-libelf-devel); | 287 | 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); |
287 | 288 | ||
288 | NO_LIBELF := 1 | 289 | NO_LIBELF := 1 |
289 | NO_DWARF := 1 | 290 | NO_DWARF := 1 |
@@ -291,6 +292,7 @@ else | |||
291 | NO_LIBUNWIND := 1 | 292 | NO_LIBUNWIND := 1 |
292 | NO_LIBDW_DWARF_UNWIND := 1 | 293 | NO_LIBDW_DWARF_UNWIND := 1 |
293 | NO_LIBBPF := 1 | 294 | NO_LIBBPF := 1 |
295 | NO_JVMTI := 1 | ||
294 | else | 296 | else |
295 | ifneq ($(filter s% -static%,$(LDFLAGS),),) | 297 | ifneq ($(filter s% -static%,$(LDFLAGS),),) |
296 | msg := $(error No static glibc found, please install glibc-static); | 298 | msg := $(error No static glibc found, please install glibc-static); |