Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965476AbcKKXSJ (ORCPT ); Fri, 11 Nov 2016 18:18:09 -0500 Received: from mail-yb0-f173.google.com ([209.85.213.173]:33038 "EHLO mail-yb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751502AbcKKXSI (ORCPT ); Fri, 11 Nov 2016 18:18:08 -0500 MIME-Version: 1.0 In-Reply-To: <1478093749-5602-1-git-send-email-jolsa@kernel.org> References: <1478093749-5602-1-git-send-email-jolsa@kernel.org> From: Stephane Eranian Date: Fri, 11 Nov 2016 15:18:03 -0800 Message-ID: Subject: Re: [PATCH 0/3] perf tools: Plug jvmti compilation into perf build To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Peter Zijlstra , Andi Kleen , William Cohen , Namhyung Kim , David Ahern Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1789 Lines: 52 Jiri, On Wed, Nov 2, 2016 at 6:35 AM, Jiri Olsa wrote: > hi, > adding jvmti compilation under perf build, so it's easy > to put it under rpm. > > I plan on updating fedora/rhel perf rpm, to have the jvmti > placed in like: > > $ rpm -qpl build/x86_64/perf-4.8.5-300.fc24.x86_64.rpm | grep jvmti > /usr/lib64/libperf-jvmti.so > > Stephane, > I'm keeping the jvmti/Makefile as I dont fully follow > the need for .lo objects. Please let me know if you'd > be ok with this new way of building jvmti lib. > Tested the patch on x86_64. With and without NO_JVMTI. Tried the libperf-jvmti.so on existing test case, got correct results. I believe you can now remove the jvmti/Makefile, it is not needed anymore. We must always (and only) build the .so as this library is meant to be used as a Java agent. Tested-by: Stephane Eranian > Also available in: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > perf/fixes > > thanks, > jirla > > > --- > Jiri Olsa (3): > tools build: Add CFLAGS_REMOVE_* support > tools build: Add jvmti feature detection support > perf tools: Plug jvmti compilation into perf build > > tools/build/Build.include | 4 +++- > tools/build/Documentation/Build.txt | 6 ++++-- > tools/build/feature/Makefile | 6 +++++- > tools/build/feature/test-jvmti.c | 13 +++++++++++++ > tools/perf/Makefile.config | 26 ++++++++++++++++++++++++++ > tools/perf/Makefile.perf | 24 +++++++++++++++++++++++- > tools/perf/jvmti/Build | 8 ++++++++ > tools/perf/tests/make | 2 +- > 8 files changed, 83 insertions(+), 6 deletions(-) > create mode 100644 tools/build/feature/test-jvmti.c > create mode 100644 tools/perf/jvmti/Build