diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-02-09 14:21:17 +0800 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-10 09:17:37 -0500 |
commit | 667d24125839b6f3363d8177d7ed9fab8a40e45f (patch) | |
tree | be090ba5c44386556c143348b83266230ad4fb47 /arch | |
parent | b85fa01ed958ca59523a2db3c2ee647b98745d6a (diff) | |
download | linux-stable-667d24125839b6f3363d8177d7ed9fab8a40e45f.tar.gz linux-stable-667d24125839b6f3363d8177d7ed9fab8a40e45f.tar.bz2 linux-stable-667d24125839b6f3363d8177d7ed9fab8a40e45f.zip |
ring_buffer: fix ring_buffer_read_page()
Impact: change API and init bpage when copy
ring_buffer_read_page()/rb_remove_entries() may be called for
a partially consumed page.
Add a parameter for rb_remove_entries() and make it update
cpu_buffer->entries correctly for partially consumed pages.
ring_buffer_read_page() now returns the offset to the next event.
Init the bpage's time_stamp when return value is 0.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions