ring-buffer: fix ring_buffer_read_page
authorSteven Rostedt <srostedt@redhat.com>
Tue, 3 Mar 2009 05:27:49 +0000 (00:27 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Wed, 4 Mar 2009 01:51:24 +0000 (20:51 -0500)
commitef7a4a161472b952941bf78855a9cd95703c024e
tree17145213ece6872d34951a2d33af6670fc2ae453
parent41be4da4e85e58520b934040966a6ae919c66c2d
ring-buffer: fix ring_buffer_read_page

The ring_buffer_read_page was broken if it were to only copy part
of the page. This patch fixes that up as well as adds a parameter
to allow a length field, in order to only copy part of the buffer page.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c