]> git.baikalelectronics.ru Git - kernel.git/commit
ring_buffer: add paranoid check for buffer page
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 30 Sep 2008 03:02:39 +0000 (23:02 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:38:55 +0000 (10:38 +0200)
commit28089b329e46f41b6b6e75ba03506d4e6a992f5a
treeecd83a07e17b6659896010adc7ceaa56eb08d12b
parent250ed403097dcefed225a4ab2973afa3cd5757e4
ring_buffer: add paranoid check for buffer page

If for some strange reason the buffer_page gets bigger, or the page struct
gets smaller, I want to know this ASAP.  The best way is to not let the
kernel compile.

This patch adds code to test the size of the struct buffer_page against the
page struct and will cause compile issues if the buffer_page ever gets bigger
than the page struct.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ring_buffer.c