aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/kernel-parameters.txt
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-06-14 16:21:43 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-06-19 23:32:07 -0400
commitde7edd31457b626e54a0b2a7e8ff4d65492f01ad (patch)
treefc98cad3155f6cded6192709c4cb496dd17282db /Documentation/kernel-parameters.txt
parentc3e13c7c0605677a2c94957b39157f4501cea9a8 (diff)
tracing: Disable tracing on warning
Add a traceoff_on_warning option in both the kernel command line as well as a sysctl option. When set, any WARN*() function that is hit will cause the tracing_on variable to be cleared, which disables writing to the ring buffer. This is useful especially when tracing a bug with function tracing. When a warning is hit, the print caused by the warning can flood the trace with the functions that producing the output for the warning. This can make the resulting trace useless by either hiding where the bug happened, or worse, by overflowing the buffer and losing the trace of the bug totally. Acked-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/kernel-parameters.txt')
-rw-r--r--Documentation/kernel-parameters.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 6e3b18a8afc6..729d0b9803b7 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -3069,6 +3069,19 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
3069 See also Documentation/trace/ftrace.txt "trace options" 3069 See also Documentation/trace/ftrace.txt "trace options"
3070 section. 3070 section.
3071 3071
3072 traceoff_on_warning
3073 [FTRACE] enable this option to disable tracing when a
3074 warning is hit. This turns off "tracing_on". Tracing can
3075 be enabled again by echoing '1' into the "tracing_on"
3076 file located in /sys/kernel/debug/tracing/
3077
3078 This option is useful, as it disables the trace before
3079 the WARNING dump is called, which prevents the trace to
3080 be filled with content caused by the warning output.
3081
3082 This option can also be set at run time via the sysctl
3083 option: kernel/traceoff_on_warning
3084
3072 transparent_hugepage= 3085 transparent_hugepage=
3073 [KNL] 3086 [KNL]
3074 Format: [always|madvise|never] 3087 Format: [always|madvise|never]