diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-02-09 06:21:17 (GMT) |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-10 14:17:37 (GMT) |
commit | 667d24125839b6f3363d8177d7ed9fab8a40e45f (patch) | |
tree | be090ba5c44386556c143348b83266230ad4fb47 /arch/x86/kernel/ftrace.c | |
parent | b85fa01ed958ca59523a2db3c2ee647b98745d6a (diff) | |
download | linux-fsl-qoriq-667d24125839b6f3363d8177d7ed9fab8a40e45f.tar.xz |
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/x86/kernel/ftrace.c')
0 files changed, 0 insertions, 0 deletions