From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: [PATCH v2 4/7] trace: Make UPROBES depend on PERF_EVENTS Date: Mon, 10 Mar 2014 15:21:29 +0100 Message-ID: <20140310142129.GA21735@redhat.com> References: <32f5e0a3b421b615be3af24b0319afff1a385403.1394418994.git.josh@joshtriplett.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Suravee Suthikulpanit , Frederic Weisbecker , David Herrmann , Stephane Eranian , Paul Gortmaker , Paul Mackerras , "H. Peter Anvin" , Thomas Gleixner , Andi Kleen , x86@kernel.org, Ingo Molnar , oprofile-list@lists.sf.net, Mel Gorman , Arnaldo Carvalho de Melo , Borislav Petkov , Dave Young , Peter Zijlstra , Gleb Natapov , Steven Rostedt , Bin Gao , Matt Fleming , Jacob Shin , linux-kernel@vger.kernel.org, Torsten Kaiser Return-path: Content-Disposition: inline In-Reply-To: <32f5e0a3b421b615be3af24b0319afff1a385403.1394418994.git.josh@joshtriplett.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: oprofile-list-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org On 03/09, Josh Triplett wrote: > > UPROBES need the perf events code, Actually it doesn't. But yes, the kernel/events directory is only built if CONFIG_PERF_EVENTS. See http://marc.info/?t=139201796100001 > diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig > index 015f85a..8639819 100644 > --- a/kernel/trace/Kconfig > +++ b/kernel/trace/Kconfig > @@ -424,6 +424,7 @@ config UPROBE_EVENT > bool "Enable uprobes-based dynamic events" > depends on ARCH_SUPPORTS_UPROBES > depends on MMU > + depends on PERF_EVENTS Can't we delay this change? This conflicts with [PATCH v7 01/15] uprobes: Kconfig dependency fix http://marc.info/?l=linux-kernel&m=139422332915701 We need to untangle UPROBES and PERF, we can change the Makefile's or move uprobe.c to kernel/. Oleg. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech