commit | 62f0b3eb5cb58931a02ee4e599e19c80a171e351 | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Fri Sep 04 14:11:34 2009 -0400 |
committer | Steven Rostedt <rostedt@goodmis.org> | Fri Sep 04 19:38:42 2009 -0400 |
tree | 344b3b8f55e6162f7fa08316aa6fde333b304c04 | |
parent | e8165dbb03ed04d798163ee512074b9a9466a9c8 [diff] |
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 <rostedt@goodmis.org>