From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969842AbXILO73 (ORCPT ); Wed, 12 Sep 2007 10:59:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965097AbXILO7V (ORCPT ); Wed, 12 Sep 2007 10:59:21 -0400 Received: from tomts20-srv.bellnexxia.net ([209.226.175.74]:48486 "EHLO tomts20-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756644AbXILO7U (ORCPT ); Wed, 12 Sep 2007 10:59:20 -0400 Date: Wed, 12 Sep 2007 10:54:08 -0400 From: Mathieu Desnoyers To: Randy Dunlap Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Adrian Bunk Subject: Re: [patch 2/6] Linux Kernel Markers - Add kconfig menus for the marker code Message-ID: <20070912145408.GB7313@Krystal> References: <20070906200733.194442762@polymtl.ca> <20070906200826.196017807@polymtl.ca> <20070906163501.87420a01.randy.dunlap@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <20070906163501.87420a01.randy.dunlap@oracle.com> X-Editor: vi X-Info: http://krystal.dyndns.org:8080 X-Operating-System: Linux/2.6.21.3-grsec (i686) X-Uptime: 10:53:53 up 44 days, 15:12, 4 users, load average: 0.16, 0.14, 0.10 User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Randy Dunlap (randy.dunlap@oracle.com) wrote: > On Thu, 06 Sep 2007 16:07:35 -0400 Mathieu Desnoyers wrote: > > [snip] > > > This patch: > > > > Add Kconfig menus for the marker code. > > > > [bunk@stusta.de: Never ever select MODULES] > > Signed-off-by: Mathieu Desnoyers > > Reviewed-by: Christoph Hellwig > > Reviewed-by: "Frank Ch. Eigler" > > CC: Adrian Bunk > > --- > > > > arch/alpha/Kconfig | 2 ++ > > arch/arm/Kconfig | 2 ++ > > arch/avr32/Kconfig.debug | 7 +++++++ > > arch/cris/Kconfig | 2 ++ > > arch/frv/Kconfig | 2 ++ > > arch/h8300/Kconfig | 2 ++ > > arch/i386/Kconfig | 2 ++ > > arch/ia64/Kconfig | 2 ++ > > arch/m32r/Kconfig | 2 ++ > > arch/m68k/Kconfig | 2 ++ > > arch/m68knommu/Kconfig | 2 ++ > > arch/mips/Kconfig | 2 ++ > > arch/parisc/Kconfig | 2 ++ > > arch/powerpc/Kconfig | 2 ++ > > arch/ppc/Kconfig | 2 ++ > > arch/s390/Kconfig | 2 ++ > > arch/sh/Kconfig | 2 ++ > > arch/sh64/Kconfig | 2 ++ > > arch/sparc/Kconfig | 2 ++ > > arch/sparc64/Kconfig | 2 ++ > > arch/um/Kconfig | 2 ++ > > arch/v850/Kconfig | 2 ++ > > arch/x86_64/Kconfig | 2 ++ > > arch/xtensa/Kconfig | 2 ++ > > kernel/Kconfig.marker | 7 +++++++ > > kernel/Makefile | 1 + > > 26 files changed, 61 insertions(+) > > > > Index: linux-2.6-lttng/arch/alpha/Kconfig > > =================================================================== > > --- linux-2.6-lttng.orig/arch/alpha/Kconfig 2007-09-04 12:14:48.000000000 -0400 > > +++ linux-2.6-lttng/arch/alpha/Kconfig 2007-09-04 12:16:57.000000000 -0400 > > @@ -646,6 +646,8 @@ config SRM_ENV > > > > source "fs/Kconfig.binfmt" > > > > +source "kernel/Kconfig.marker" > > + > > endmenu > > > > source "net/Kconfig" > > Index: linux-2.6-lttng/kernel/Kconfig.marker > > =================================================================== > > --- /dev/null 1970-01-01 00:00:00.000000000 +0000 > > +++ linux-2.6-lttng/kernel/Kconfig.marker 2007-09-04 12:16:57.000000000 -0400 > > @@ -0,0 +1,7 @@ > > +# Code markers configuration > > + > > +config MARKERS > > + bool "Activate markers" > > + help > > + Place an empty function call at each marker site. Can be > > + dynamically changed for a probe function. > > Index: linux-2.6-lttng/arch/avr32/Kconfig.debug > > =================================================================== > > --- linux-2.6-lttng.orig/arch/avr32/Kconfig.debug 2007-09-04 12:14:49.000000000 -0400 > > +++ linux-2.6-lttng/arch/avr32/Kconfig.debug 2007-09-04 12:16:57.000000000 -0400 > > @@ -6,6 +6,9 @@ config TRACE_IRQFLAGS_SUPPORT > > > > source "lib/Kconfig.debug" > > > > +menu "Instrumentation Support" > > + depends on EXPERIMENTAL > > + > > config KPROBES > > bool "Kprobes" > > depends on DEBUG_KERNEL > > @@ -16,4 +19,8 @@ config KPROBES > > for kernel debugging, non-intrusive instrumentation and testing. > > If in doubt, say "N". > > > > +source "kernel/Kconfig.marker" > > + > > +endmenu > > + > > endmenu > > It seems sad that this patch sources Kconfig.marker, a 7-line file, > 20-something times. Yes, you (we) don't want to put those 7 lines > into 20-something different files, so sourcing is the right thing. > > However, what you did for avr32 seems more on the right track to me: > make _one_ Instrumentation support menu that includes PROFILING, > OPROFILE, KPROBES, and MARKERS and then use (source) that in all > of the arches. > Ok, it will be in my next post. Mathieu > --- > ~Randy > *** Remember to use Documentation/SubmitChecklist when testing your code *** -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68