android_kernel_xiaomi_sm7250/kernel/trace
Steven Rostedt 3f5a54e371 ftrace: dump out ftrace buffers to console on panic
At OLS I had a lot of interest to be able to have the ftrace buffers
dumped on panic.  Usually one would expect to uses kexec and examine
the buffers after a new kernel is loaded. But sometimes the resources
do not permit kdump and kexec, so having an option to still see the
sequence of events up to the crash is very advantageous.

This patch adds the option to have the ftrace buffers dumped to the
console in the latency_trace format on a panic. When the option is set,
the default entries per CPU buffer are lowered to 16384, since the writing
to the serial (if that is the console) may take an awful long time
otherwise.

[
 Changes since -v1:
  Got alpine to send correctly (as well as spell check working).
  Removed config option.
  Moved the static variables into ftrace_dump itself.
  Gave printk a log level.
]

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-14 10:35:26 +02:00
..
ftrace.c ftrace: remove old pointers to mcount 2008-10-14 10:35:12 +02:00
Kconfig ftrace: create __mcount_loc section 2008-10-14 10:34:40 +02:00
Makefile Merge branch 'tracing/sysprof' into auto-ftrace-next 2008-07-10 11:43:08 +02:00
trace_functions.c ftrace: use current CPU for function startup 2008-07-11 15:49:21 +02:00
trace_irqsoff.c ftrace: fix modular build 2008-07-26 15:08:22 +02:00
trace_mmiotrace.c ftrace: new continue entry - separate out from trace_entry 2008-10-14 10:35:15 +02:00
trace_sched_switch.c ftrace: port to tracepoints 2008-10-14 10:32:26 +02:00
trace_sched_wakeup.c ftrace: port to tracepoints 2008-10-14 10:32:26 +02:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_selftest.c ftrace: printk formatting infrastructure 2008-10-14 10:35:19 +02:00
trace_sysprof.c hrtimer: prevent migration of per CPU hrtimers 2008-09-29 17:09:14 +02:00
trace.c ftrace: dump out ftrace buffers to console on panic 2008-10-14 10:35:26 +02:00
trace.h ftrace: printk formatting infrastructure 2008-10-14 10:35:19 +02:00