[PATCH] include CONFIG_STACK_TRACER in boot warning about debug options

From: Uwe Kleine-KÃnig
Date: Mon Mar 30 2009 - 03:13:22 EST


CONFIG_STACK_TRACER=y contributes to DEBUG_COUNT, but it was not
included in the list. This resulted in the following snipplet in my kernel
log:

[ 16.170275] *****************************************************************************
[ 16.178530] * *
[ 16.186782] * REMINDER, the following debugging option is turned on in your .config: *
[ 16.195033] * *
[ 16.203288] * *
[ 16.211535] * it may increase runtime overhead and latencies. *
[ 16.219777] * *
[ 16.228026] *****************************************************************************

Signed-off-by: Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx>
---
Hello,

this patch applies on top of

realtime: preempt warn about tracing

in the latest preempt-rt patch set.

Best regards
Uwe

init/main.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/init/main.c b/init/main.c
index 661cc0f..1e27ac5 100644
--- a/init/main.c
+++ b/init/main.c
@@ -924,8 +924,8 @@ static int __init kernel_init(void * unused)
#ifdef CONFIG_PREEMPT_TRACER
printk(KERN_ERR "* CONFIG_PREEMPT_TRACER *\n");
#endif
-#ifdef CONFIG_FTRACE
- printk(KERN_ERR "* CONFIG_FTRACE *\n");
+#ifdef CONFIG_STACK_TRACER
+ printk(KERN_ERR "* CONFIG_STACK_TRACER *\n");
#endif
#ifdef CONFIG_WAKEUP_LATENCY_HIST
printk(KERN_ERR "* CONFIG_WAKEUP_LATENCY_HIST *\n");
@@ -939,6 +939,9 @@ static int __init kernel_init(void * unused)
#ifdef CONFIG_LOCKDEP
printk(KERN_ERR "* CONFIG_LOCKDEP *\n");
#endif
+#ifdef CONFIG_FTRACE
+ printk(KERN_ERR "* CONFIG_FTRACE *\n");
+#endif
printk(KERN_ERR "* *\n");
#if DEBUG_COUNT == 1
printk(KERN_ERR "* it may increase runtime overhead and latencies. *\n");
--
1.6.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/