lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070906163501.87420a01.randy.dunlap@oracle.com>
Date:	Thu, 6 Sep 2007 16:35:01 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
Cc:	akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
	Adrian Bunk <bunk@...sta.de>
Subject: Re: [patch 2/6] Linux Kernel Markers - Add kconfig menus for the
 marker code

On Thu, 06 Sep 2007 16:07:35 -0400 Mathieu Desnoyers wrote:

[snip]

> This patch:
> 
> Add Kconfig menus for the marker code.
> 
> [bunk@...sta.de: Never ever select MODULES]
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
> Reviewed-by: Christoph Hellwig <hch@...radead.org>
> Reviewed-by: "Frank Ch. Eigler" <fche@...hat.com>
> CC: Adrian Bunk <bunk@...sta.de>
> ---
> 
>  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.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ