kernel-ark/kernel/trace
Steven Rostedt 98db8df777 ring-buffer: prevent false positive warning
Impact: eliminate false WARN_ON message

If an interrupt goes off after the setting of the local variable
tail_page and before incrementing the write index of that page,
the interrupt could push the commit forward to the next page.

Later a check is made to see if interrupts pushed the buffer around
the entire ring buffer by comparing the next page to the last commited
page. This can produce a false positive if the interrupt had pushed
the commit page forward as stated above.

Thanks to Jiaying Zhang for finding this race.

Reported-by: Jiaying Zhang <jiayingz@google.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-12-23 18:45:26 +01:00
..
ftrace.c ftrace: add not to regex on filtering functions 2008-12-18 12:57:09 +01:00
Kconfig trace: add a way to enable or disable the stack tracer 2008-12-18 12:56:24 +01:00
Makefile x86, bts, ftrace: adapt the hw-branch-tracer to the ds.c interface 2008-12-12 08:08:14 +01:00
ring_buffer.c ring-buffer: prevent false positive warning 2008-12-23 18:45:26 +01:00
trace_boot.c tracing/ftrace: change the type of the init() callback 2008-11-16 07:55:23 +01:00
trace_branch.c ftrace: replace raw_local_irq_save with local_irq_save 2008-12-03 08:56:19 +01:00
trace_functions_graph.c tracing/function-graph-tracer: Output arrows signal on hardirq call/return 2008-12-12 11:14:09 +01:00
trace_functions.c tracing/ftrace: change the type of the init() callback 2008-11-16 07:55:23 +01:00
trace_hw_branches.c x86, bts, ftrace: adapt the hw-branch-tracer to the ds.c interface 2008-12-12 08:08:14 +01:00
trace_irqsoff.c tracing/ftrace: change the type of the init() callback 2008-11-16 07:55:23 +01:00
trace_mmiotrace.c tracing/function-graph-tracer: handle ftrace_printk entries 2008-12-04 10:18:39 +01:00
trace_nop.c tracing/ftrace: make nop tracer using tracer flags 2008-11-18 11:10:59 +01:00
trace_power.c tracing: add "power-tracer": C/P state tracer to help power optimization 2008-11-26 08:29:32 +01:00
trace_sched_switch.c tracing: fix warnings in kernel/trace/trace_sched_switch.c 2008-12-19 01:05:38 +01:00
trace_sched_wakeup.c tracing/ftrace: change the type of the init() callback 2008-11-16 07:55:23 +01:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_selftest.c tracing/ftrace: change the type of the init() callback 2008-11-16 07:55:23 +01:00
trace_stack.c trace: better use of stack_trace_enabled for boot up code 2008-12-18 12:56:56 +01:00
trace_sysprof.c tracing/ftrace: change the type of the init() callback 2008-11-16 07:55:23 +01:00
trace.c Merge branches 'tracing/ftrace', 'tracing/ring-buffer' and 'tracing/urgent' into tracing/core 2008-12-19 09:42:40 +01:00
trace.h tracing/ftrace: add the printk-msg-only option 2008-12-17 00:26:36 +01:00