From: Steven Rostedt Date: Fri, 4 Sep 2009 18:11:34 +0000 (-0400) Subject: ring-buffer: check for swapped buffers in start of committing X-Git-Tag: v2.6.32-rc1~718^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62f0b3eb5cb58931a02ee4e599e19c80a171e351;p=pandora-kernel.git ring-buffer: check for swapped buffers in start of committing Because the irqsoff tracer can swap an internal CPU buffer, it is possible that a swap happens between the start of the write and before the committing bit is set (the committing bit will disable swapping). This patch adds a check for this and will fail the write if it detects it. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed