]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ring-buffer: fix timestamp in partial ring_buffer_page_read
authorSteven Rostedt <srostedt@redhat.com>
Wed, 4 Mar 2009 04:52:42 +0000 (23:52 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Thu, 5 Mar 2009 00:01:45 +0000 (19:01 -0500)
commit4f3640f8a358f2183a8c966f299eeb55ca523e06
treeff8b1a10b449fbb823523b09a192e6b5563d56e8
parente543ad76914abec1acf6631604a4154cd7a2ca6b
ring-buffer: fix timestamp in partial ring_buffer_page_read

If a partial ring_buffer_page_read happens, then some of the
incremental timestamps may be lost. This patch writes the
recent timestamp into the page that is passed back to the caller.

A partial ring_buffer_page_read is where the full page would not
be written back to the user, and instead, just part of the page
is copied to the user. A full page would be a page swap with the
ring buffer and the timestamps would be correct.

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