* + lib-consolidate-debug_per_cpu_maps.patch added to -mm tree
@ 2011-04-12 21:48 akpm
2011-04-20 4:21 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2011-04-12 21:48 UTC (permalink / raw)
To: mm-commits; +Cc: sboyd, benh, hpa, linux-arch, mingo, tglx
The patch titled
lib: consolidate DEBUG_PER_CPU_MAPS
has been added to the -mm tree. Its filename is
lib-consolidate-debug_per_cpu_maps.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: lib: consolidate DEBUG_PER_CPU_MAPS
From: Stephen Boyd <sboyd@codeaurora.org>
DEBUG_PER_CPU_MAPS is used in lib/cpumask.c as well as in
inlcude/linux/cpumask.h and thus it has outgrown its use within x86 and
powerpc alone. Any arch with SMP support may want to get some more
debugging, so make this option generic.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: <linux-arch@vger.kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/powerpc/Kconfig.debug | 12 ------------
arch/x86/Kconfig.debug | 11 -----------
lib/Kconfig.debug | 11 +++++++++++
3 files changed, 11 insertions(+), 23 deletions(-)
diff -puN arch/powerpc/Kconfig.debug~lib-consolidate-debug_per_cpu_maps arch/powerpc/Kconfig.debug
--- a/arch/powerpc/Kconfig.debug~lib-consolidate-debug_per_cpu_maps
+++ a/arch/powerpc/Kconfig.debug
@@ -44,18 +44,6 @@ config DEBUG_STACK_USAGE
This option will slow down process creation somewhat.
-config DEBUG_PER_CPU_MAPS
- bool "Debug access to per_cpu maps"
- depends on DEBUG_KERNEL
- depends on SMP
- default n
- ---help---
- Say Y to verify that the per_cpu map being accessed has
- been setup. Adds a fair amount of code to kernel memory
- and decreases performance.
-
- Say N if unsure.
-
config HCALL_STATS
bool "Hypervisor call instrumentation"
depends on PPC_PSERIES && DEBUG_FS && TRACEPOINTS
diff -puN arch/x86/Kconfig.debug~lib-consolidate-debug_per_cpu_maps arch/x86/Kconfig.debug
--- a/arch/x86/Kconfig.debug~lib-consolidate-debug_per_cpu_maps
+++ a/arch/x86/Kconfig.debug
@@ -75,17 +75,6 @@ config DEBUG_STACK_USAGE
This option will slow down process creation somewhat.
-config DEBUG_PER_CPU_MAPS
- bool "Debug access to per_cpu maps"
- depends on DEBUG_KERNEL
- depends on SMP
- ---help---
- Say Y to verify that the per_cpu map being accessed has
- been setup. Adds a fair amount of code to kernel memory
- and decreases performance.
-
- Say N if unsure.
-
config X86_PTDUMP
bool "Export kernel pagetable layout to userspace via debugfs"
depends on DEBUG_KERNEL
diff -puN lib/Kconfig.debug~lib-consolidate-debug_per_cpu_maps lib/Kconfig.debug
--- a/lib/Kconfig.debug~lib-consolidate-debug_per_cpu_maps
+++ a/lib/Kconfig.debug
@@ -968,6 +968,17 @@ config DEBUG_FORCE_WEAK_PER_CPU
To ensure that generic code follows the above rules, this
option forces all percpu variables to be defined as weak.
+config DEBUG_PER_CPU_MAPS
+ bool "Debug access to per_cpu maps"
+ depends on DEBUG_KERNEL
+ depends on SMP
+ help
+ Say Y to verify that the per_cpu map being accessed has
+ been set up. This adds a fair amount of code to kernel memory
+ and decreases performance.
+
+ Say N if unsure.
+
config LKDTM
tristate "Linux Kernel Dump Test Tool Module"
depends on DEBUG_FS
_
Patches currently in -mm which might be from sboyd@codeaurora.org are
linux-next.patch
msm-timer-migrate-to-timer-based-__delay.patch
lib-consolidate-debug_per_cpu_maps.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + lib-consolidate-debug_per_cpu_maps.patch added to -mm tree
2011-04-12 21:48 + lib-consolidate-debug_per_cpu_maps.patch added to -mm tree akpm
@ 2011-04-20 4:21 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2011-04-20 4:21 UTC (permalink / raw)
To: akpm; +Cc: mm-commits, sboyd, hpa, linux-arch, mingo, tglx
On Tue, 2011-04-12 at 14:48 -0700, akpm@linux-foundation.org wrote:
> The patch titled
> lib: consolidate DEBUG_PER_CPU_MAPS
> has been added to the -mm tree. Its filename is
> lib-consolidate-debug_per_cpu_maps.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
> See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
> out what to do about this
>
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
>
> ------------------------------------------------------
> Subject: lib: consolidate DEBUG_PER_CPU_MAPS
> From: Stephen Boyd <sboyd@codeaurora.org>
>
> DEBUG_PER_CPU_MAPS is used in lib/cpumask.c as well as in
> inlcude/linux/cpumask.h and thus it has outgrown its use within x86 and
> powerpc alone. Any arch with SMP support may want to get some more
> debugging, so make this option generic.
>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> Cc: <linux-arch@vger.kernel.org>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: "H. Peter Anvin" <hpa@zytor.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> arch/powerpc/Kconfig.debug | 12 ------------
> arch/x86/Kconfig.debug | 11 -----------
> lib/Kconfig.debug | 11 +++++++++++
> 3 files changed, 11 insertions(+), 23 deletions(-)
>
> diff -puN arch/powerpc/Kconfig.debug~lib-consolidate-debug_per_cpu_maps arch/powerpc/Kconfig.debug
> --- a/arch/powerpc/Kconfig.debug~lib-consolidate-debug_per_cpu_maps
> +++ a/arch/powerpc/Kconfig.debug
> @@ -44,18 +44,6 @@ config DEBUG_STACK_USAGE
>
> This option will slow down process creation somewhat.
>
> -config DEBUG_PER_CPU_MAPS
> - bool "Debug access to per_cpu maps"
> - depends on DEBUG_KERNEL
> - depends on SMP
> - default n
> - ---help---
> - Say Y to verify that the per_cpu map being accessed has
> - been setup. Adds a fair amount of code to kernel memory
> - and decreases performance.
> -
> - Say N if unsure.
> -
> config HCALL_STATS
> bool "Hypervisor call instrumentation"
> depends on PPC_PSERIES && DEBUG_FS && TRACEPOINTS
> diff -puN arch/x86/Kconfig.debug~lib-consolidate-debug_per_cpu_maps arch/x86/Kconfig.debug
> --- a/arch/x86/Kconfig.debug~lib-consolidate-debug_per_cpu_maps
> +++ a/arch/x86/Kconfig.debug
> @@ -75,17 +75,6 @@ config DEBUG_STACK_USAGE
>
> This option will slow down process creation somewhat.
>
> -config DEBUG_PER_CPU_MAPS
> - bool "Debug access to per_cpu maps"
> - depends on DEBUG_KERNEL
> - depends on SMP
> - ---help---
> - Say Y to verify that the per_cpu map being accessed has
> - been setup. Adds a fair amount of code to kernel memory
> - and decreases performance.
> -
> - Say N if unsure.
> -
> config X86_PTDUMP
> bool "Export kernel pagetable layout to userspace via debugfs"
> depends on DEBUG_KERNEL
> diff -puN lib/Kconfig.debug~lib-consolidate-debug_per_cpu_maps lib/Kconfig.debug
> --- a/lib/Kconfig.debug~lib-consolidate-debug_per_cpu_maps
> +++ a/lib/Kconfig.debug
> @@ -968,6 +968,17 @@ config DEBUG_FORCE_WEAK_PER_CPU
> To ensure that generic code follows the above rules, this
> option forces all percpu variables to be defined as weak.
>
> +config DEBUG_PER_CPU_MAPS
> + bool "Debug access to per_cpu maps"
> + depends on DEBUG_KERNEL
> + depends on SMP
> + help
> + Say Y to verify that the per_cpu map being accessed has
> + been set up. This adds a fair amount of code to kernel memory
> + and decreases performance.
> +
> + Say N if unsure.
> +
> config LKDTM
> tristate "Linux Kernel Dump Test Tool Module"
> depends on DEBUG_FS
> _
>
> Patches currently in -mm which might be from sboyd@codeaurora.org are
>
> linux-next.patch
> msm-timer-migrate-to-timer-based-__delay.patch
> lib-consolidate-debug_per_cpu_maps.patch
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arch" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-20 4:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 21:48 + lib-consolidate-debug_per_cpu_maps.patch added to -mm tree akpm
2011-04-20 4:21 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).