tracing/function-return-tracer: add a barrier to ensure return stack index is increme...
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 15 Nov 2008 01:37:44 +0000 (02:37 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Nov 2008 06:57:37 +0000 (07:57 +0100)
Impact: fix possible race condition in ftrace function return tracer

This fixes a possible race condition if index incrementation
is not immediately flushed in memory.

Thanks for Andi Kleen and Steven Rostedt for pointing out this issue
and give me this solution.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found