@@ -98,6 +98,13 @@ config UBSAN
If unsure, say N here.
+config DEBUG_TRACE
+ bool "Debug trace support"
+ ---help---
+ Debug trace enables to record debug trace messages which are printed
+ either directly to the console or are printed to console in case of
+ a system crash.
+
endif # DEBUG || EXPERT
endmenu
@@ -1157,7 +1157,7 @@ int printk_ratelimit(void)
* **************************************************************
*/
-#ifdef DEBUG_TRACE_DUMP
+#ifdef CONFIG_DEBUG_TRACE
/* Send output direct to console, or buffer it? */
static volatile int debugtrace_send_to_console;
@@ -86,8 +86,7 @@ int parse_boolean(const char *name, const char *s, const char *e);
*/
int cmdline_strcmp(const char *frag, const char *name);
-/*#define DEBUG_TRACE_DUMP*/
-#ifdef DEBUG_TRACE_DUMP
+#ifdef CONFIG_DEBUG_TRACE
extern void debugtrace_dump(void);
extern void debugtrace_printk(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));