From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755529Ab3KYOwN (ORCPT ); Mon, 25 Nov 2013 09:52:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53407 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665Ab3KYOwK (ORCPT ); Mon, 25 Nov 2013 09:52:10 -0500 Date: Mon, 25 Nov 2013 15:51:44 +0100 From: Jiri Olsa To: Namhyung Kim Cc: linux-kernel@vger.kernel.org, Corey Ashford , Frederic Weisbecker , Ingo Molnar , Paul Mackerras , Peter Zijlstra , Arnaldo Carvalho de Melo , Steven Rostedt , David Ahern Subject: Re: [PATCH 17/22] perf tools: Add build and install plugins targets Message-ID: <20131125145144.GG3161@krava.brq.redhat.com> References: <1385031680-9014-1-git-send-email-jolsa@redhat.com> <1385031680-9014-18-git-send-email-jolsa@redhat.com> <1385134068.1747.105.camel@leonhard> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1385134068.1747.105.camel@leonhard> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 23, 2013 at 12:27:48AM +0900, Namhyung Kim wrote: > 2013-11-21 (목), 12:01 +0100, Jiri Olsa: > > Adding 'plugins' target along with the libtraceevent.a, > > so plugins are built together with traceevent library. > > > > Adding 'install-traceevent-plugins' Makefile install target, > > instructing perf to install plugins into: > > $(HOME)/libexec/perf-core/traceevent/plugins > > - if installed localy under $HOME > > $(DESTDIR)/$(prefix)/$(perfexecdir)/traceevent/plugins > > - if installed globally > > [SNIP] > > --- a/tools/perf/config/Makefile > > +++ b/tools/perf/config/Makefile > > @@ -578,6 +578,7 @@ else > > lib = lib > > endif > > libdir = $(prefix)/$(lib) > > +plugindir=$(perfexecdir)/traceevent/plugins > > Hmm.. it puts traceevent plugins under the perf directory. But I don't > think it's a good idea since libtraceevent can be used independently. > > What about something like this? > > plugindir = $(perfexecdir)/../traceevent/plugins this is where trace-cmd stores them: $(HOME)/.trace-cmd/plugins $(prefix)/$(libdir)/trace-cmd/plugins but I guess we want global place to install plugins, the traceevent by default uses: $(HOME)/.traceevent/plugins $(prefix)/lib/traceevent/plugins How about that? thanks, jirka