ring-buffer: Check for end of page in iterator
authorSteven Rostedt <srostedt@redhat.com>
Tue, 26 Jan 2010 21:14:08 +0000 (16:14 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 26 Jan 2010 21:14:08 +0000 (16:14 -0500)
commit3c05d7482777f15e71bb4cb1ba78dee2800dfec6
treecb3d7c935ede863ca94e0beb97dc57ceb1e75e7b
parent492a74f4210e15f4701422e2e1c4cd3c1e45ddae
ring-buffer: Check for end of page in iterator

If the iterator comes to an empty page for some reason, or if
the page is emptied by a consuming read. The iterator code currently
does not check if the iterator is pass the contents, and may
return a false entry.

This patch adds a check to the ring buffer iterator to test if the
current page has been completely read and sets the iterator to the
next page if necessary.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c