From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753318AbdDLIT1 (ORCPT ); Wed, 12 Apr 2017 04:19:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33258 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751992AbdDLITZ (ORCPT ); Wed, 12 Apr 2017 04:19:25 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B023A2DC342 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jolsa@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B023A2DC342 Date: Wed, 12 Apr 2017 10:19:21 +0200 From: Jiri Olsa To: David Carrillo-Cisneros Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Andi Kleen , Simon Que , Wang Nan , Jiri Olsa , He Kuang , Masami Hiramatsu , Stephane Eranian , Paul Turner Subject: Re: [PATCH 5/6] perf tools: disable JVMTI if no ELF support available Message-ID: <20170412081921.GD17517@krava> References: <20170412064919.92449-1-davidcc@google.com> <20170412064919.92449-7-davidcc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170412064919.92449-7-davidcc@google.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 12 Apr 2017 08:19:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 11, 2017 at 11:49:18PM -0700, David Carrillo-Cisneros wrote: > The build of JVMTI depends on LIBELF (-lelf). Make Makefile.conf > check this dependendancy and notify user when not present. > > Signed-off-by: David Carrillo-Cisneros > --- > tools/perf/Makefile.config | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index cfd6015229a2..279c303b2c22 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -274,6 +274,7 @@ ifdef NO_LIBELF > NO_LIBUNWIND := 1 > NO_LIBDW_DWARF_UNWIND := 1 > NO_LIBBPF := 1 > + NO_JVMTI := 1 > else > ifeq ($(feature-libelf), 0) > ifeq ($(feature-glibc), 1) > @@ -283,7 +284,7 @@ else > LIBC_SUPPORT := 1 > endif > ifeq ($(LIBC_SUPPORT),1) > - msg := $(warning No libelf found, disables 'probe' tool and BPF support in 'perf record', please install libelf-dev, libelf-devel or elfutils-libelf-devel); > + 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); nitpick ;-) s/jvmti,/jvmti / jirka