Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758291AbYAJS2q (ORCPT ); Thu, 10 Jan 2008 13:28:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755212AbYAJS2g (ORCPT ); Thu, 10 Jan 2008 13:28:36 -0500 Received: from pasmtpa.tele.dk ([80.160.77.114]:50006 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755909AbYAJS2f (ORCPT ); Thu, 10 Jan 2008 13:28:35 -0500 Date: Thu, 10 Jan 2008 19:28:28 +0100 From: Sam Ravnborg To: Steven Rostedt Cc: LKML , Ingo Molnar , Linus Torvalds , Andrew Morton , Peter Zijlstra , Christoph Hellwig , Mathieu Desnoyers , Gregory Haskins , Arnaldo Carvalho de Melo , Thomas Gleixner , Tim Bird , "Frank Ch. Eigler" , Steven Rostedt Subject: Re: [RFC PATCH 01/22 -v2] Add basic support for gcc profiler instrumentation Message-ID: <20080110182828.GA19399@uranus.ravnborg.org> References: <20080109232914.676624725@goodmis.org> <20080109233042.386384204@goodmis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080109233042.386384204@goodmis.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1558 Lines: 56 Hi Steven. > Index: linux-compile-i386.git/arch/x86/Kconfig > =================================================================== > --- linux-compile-i386.git.orig/arch/x86/Kconfig 2008-01-09 14:09:36.000000000 -0500 > +++ linux-compile-i386.git/arch/x86/Kconfig 2008-01-09 14:10:07.000000000 -0500 > @@ -28,6 +28,10 @@ config GENERIC_CMOS_UPDATE > bool > default y > > +config ARCH_HAS_MCOUNT > + bool > + default y > + Please use the following scheme: arch/x86/Kconfig: config X86 + select HAVE_MCOUNT lib/tracing/Kconfig + # ARCH shall select HAVE_MCOUNT if they provide this function + config HAVE_MCOUNT + bool + + config MCOUNT + bool + select FRAME_POINTER And then in your later patches: +config MCOUNT_TRACER + bool "Profiler instrumentation based tracer" + depends on DEBUG_KERNEL && HAVE_MCOUNT + select MCOUNT + help + Use profiler.... The "default n" is a noop since this is the default. And note that the depends on is removed from MCOUNT because you use it as a select target (so dependencies are not checked anyway). With this scheme implmented you: - Use new naming convention (HAVE_*) - Avoid defining one config variable per arch - Do not have dependencies on selected symbols - More compact representation in arch Kconfig files Sam -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/