1
linux/Documentation/trace
Frederic Weisbecker cecbca96da tracing: Dump either the oops's cpu source or all cpus buffers
The ftrace_dump_on_oops kernel parameter, sysctl and sysrq let one
dump every cpu buffers when an oops or panic happens.

It's nice when you have few cpus but it may take ages if have many,
plus you miss the real origin of the problem in all the cpu traces.

Sometimes, all you need is to dump the cpu buffer that triggered the
opps, most of the time it is our main interest.

This patch modifies ftrace_dump_on_oops to handle this choice.

The ftrace_dump_on_oops kernel parameter, when it comes alone, has
the same behaviour than before. But ftrace_dump_on_oops=orig_cpu
will only dump the buffer of the cpu that oops'ed.

Similarly, sysctl kernel.ftrace_dump_on_oops=1 and
echo 1 > /proc/sys/kernel/ftrace_dump_on_oops keep their previous
behaviour. But setting 2 jumps into cpu origin dump mode.

v2: Fix double setup
v3: Fix spelling issues reported by Randy Dunlap
v4: Also update __ftrace_dump in the selftests

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
2010-04-21 23:11:42 +02:00
..
postprocess tracing, page-allocator: add a postprocessing script for page-allocator-related ftrace events 2009-09-22 07:17:34 -07:00
events-kmem.txt mm tracing: cleanup Documentation/trace/events-kmem.txt 2009-12-22 14:17:55 -08:00
events.txt trivial: fix typo in tracing documentation 2009-09-21 15:15:52 +02:00
ftrace-design.txt Merge branch 'tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into tracing/core 2010-02-27 10:06:10 +01:00
ftrace.txt tracing: Dump either the oops's cpu source or all cpus buffers 2010-04-21 23:11:42 +02:00
function-graph-fold.vim
kmemtrace.txt
kprobetrace.txt kprobetrace, doc: Add the explanation to remove probe points 2010-01-20 07:18:15 +01:00
mmiotrace.txt Documentation: Update mmiotrace.txt 2009-12-20 06:18:23 +01:00
ring-buffer-design.txt Documentation: update ring-buffer-design.txt 2010-01-11 09:34:07 -08:00
tracepoint-analysis.txt Documentation: Update tracepoint-analysis.txt 2009-12-20 06:18:25 +01:00
tracepoints.txt