trace: print ftrace_dump at KERN_EMERG log level
authorSteven Rostedt <srostedt@redhat.com>
Wed, 14 Jan 2009 17:24:42 +0000 (12:24 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 15 Jan 2009 08:45:09 +0000 (09:45 +0100)
commit428aee1460a75197f0190534b4d610450ee59af1
tree56eb2735c82c1556b1548f18ec75568e71954066
parent32632920a788fb13da35b131b77cc4324c38c1c5
trace: print ftrace_dump at KERN_EMERG log level

Impact: fix to print out ftrace_dump when expected

I was debugging a hard race condition to only find out that
after I hit the race, my log level was not at level to show
KERN_INFO. The time it took to trigger the race was wasted because
I did not capture the trace.

Since ftrace_dump is only called from kernel oops (and only when
it is set in the kernel command line to do so), or when a
developer adds it to their own local tree, the log level of
the print should be at KERN_EMERG to make sure the print appears.

ftrace_dump is not called by a normal user setup, and will not
add extra unwanted print out to the console. There is no reason
it should be at KERN_INFO.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c
This page took 0.02558 seconds and 5 git commands to generate.