diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-04 01:51:40 +0100 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-04 02:52:27 +0100 |
commit | 474d32b68d6d842f3e710e9ae9fe2568c53339f8 (patch) | |
tree | 674376b2f7a45cf6558879a4985398397dc96e79 /kernel/trace/trace.h | |
parent | ring-buffer: replace sizeof of event header with offsetof (diff) | |
download | linux-474d32b68d6d842f3e710e9ae9fe2568c53339f8.tar.xz linux-474d32b68d6d842f3e710e9ae9fe2568c53339f8.zip |
ring-buffer: make ring_buffer_read_page read from start on partial page
Impact: dont leave holes in read buffer page
The ring_buffer_read_page swaps a given page with the reader page
of the ring buffer, if certain conditions are set:
1) requested length is big enough to hold entire page data
2) a writer is not currently on the page
3) the page is not partially consumed.
Instead of swapping with the supplied page. It copies the data to
the supplied page instead. But currently the data is copied in the
same offset as the source page. This causes a hole at the start
of the reader page. This complicates the use of this function.
Instead, it should copy the data at the beginning of the function
and update the index fields accordingly.
Other small clean ups are also done in this patch.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace.h')
0 files changed, 0 insertions, 0 deletions