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
..
blktrace.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
ftrace.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
Kconfig
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
kmemtrace.c
Makefile
perf: Drop the obsolete profile naming for trace events
2010-03-10 14:47:18 +01:00
power-traces.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
ring_buffer.c
Merge branch 'linus' into tracing/core
2010-04-08 10:18:47 +02:00
ring_buffer_benchmark.c
ring-buffer: Add place holder recording of dropped events
2010-03-31 22:57:04 -04:00
trace.c
tracing: Dump either the oops's cpu source or all cpus buffers
2010-04-21 23:11:42 +02:00
trace.h
Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2010-03-13 14:40:50 -08:00
trace_boot.c
trace_branch.c
tracing: Add correct/incorrect to sort keys for branch annotation output
2010-02-09 21:35:05 -05:00
trace_clock.c
tracing: Fix lockdep warning in global_clock()
2010-03-29 15:16:44 -04:00
trace_entries.h
hw-breakpoints: Rewrite the hw-breakpoints layer on top of perf events
2009-11-08 15:34:42 +01:00
trace_event_perf.c
perf: Correctly align perf event tracing buffer
2010-04-01 08:26:30 +02:00
trace_events.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
trace_events_filter.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
trace_export.c
tracing: Remove show_format and related macros from TRACE_EVENT
2010-01-06 12:08:46 -05:00
trace_functions.c
trace_functions_graph.c
Merge branch 'linus' into tracing/core
2010-04-08 10:18:47 +02:00
trace_hw_branches.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
2009-12-14 09:58:24 -08:00
trace_irqsoff.c
tracing: Add stack trace to irqsoff tracer
2009-12-11 13:19:51 -05:00
trace_kprobe.c
perf: Drop the obsolete profile naming for trace events
2010-03-10 14:47:18 +01:00
trace_ksym.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
trace_mmiotrace.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
trace_nop.c
trace_output.c
tracing: Add full state to trace_seq
2009-12-09 14:05:49 -05:00
trace_output.h
trace_printk.c
trace_sched_switch.c
trace_sched_wakeup.c
locking: Convert __raw_spin* functions to arch_spin*
2009-12-14 23:55:32 +01:00
trace_selftest.c
tracing: Dump either the oops's cpu source or all cpus buffers
2010-04-21 23:11:42 +02:00
trace_selftest_dynamic.c
trace_stack.c
tracing: Fix circular dead lock in stack trace
2010-02-02 10:20:18 -05:00
trace_stat.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
trace_stat.h
trace_syscalls.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
trace_sysprof.c
perf events, x86/stacktrace: Make stack walking optional
2009-12-17 09:56:19 +01:00
trace_workqueue.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00