Lines Matching refs:reader_page
473 struct buffer_page *reader_page; member
1016 pagebusy = cpu_buffer->reader_page == cpu_buffer->commit_page; in ring_buffer_wait()
1686 cpu_buffer->reader_page = bpage; in rb_allocate_cpu_buffer()
1693 INIT_LIST_HEAD(&cpu_buffer->reader_page->list); in rb_allocate_cpu_buffer()
1709 free_buffer_page(cpu_buffer->reader_page); in rb_allocate_cpu_buffer()
1723 free_buffer_page(cpu_buffer->reader_page); in rb_free_cpu_buffer()
1922 if (cpu_buffer->tail_page == cpu_buffer->reader_page) in rb_remove_pages()
2330 return __rb_page_index(cpu_buffer->reader_page, in rb_reader_event()
2331 cpu_buffer->reader_page->read); in rb_reader_event()
2423 if (iter->head_page == cpu_buffer->reader_page) in rb_inc_iter()
2752 cpu_buffer->reader_page))) { in rb_move_tail()
3139 if (cpu_buffer->reader_page == cpu_buffer->commit_page) in rb_wakeups()
3935 struct buffer_page *reader = cpu_buffer->reader_page; in rb_per_cpu_empty()
4152 if (cpu_buffer->tail_page == cpu_buffer->reader_page) in ring_buffer_oldest_event_ts()
4153 bpage = cpu_buffer->reader_page; in ring_buffer_oldest_event_ts()
4337 iter->head_page = cpu_buffer->reader_page; in rb_iter_reset()
4338 iter->head = cpu_buffer->reader_page->read; in rb_iter_reset()
4346 iter->page_stamp = cpu_buffer->reader_page->page->time_stamp; in rb_iter_reset()
4392 reader = cpu_buffer->reader_page; in ring_buffer_iter_empty()
4420 iter->head == rb_page_commit(cpu_buffer->reader_page))); in ring_buffer_iter_empty()
4546 new_rb_page = cpu_buffer->reader_page; in rb_swap_reader_page_ext()
4566 cpu_buffer->reader_page = new_reader; in rb_swap_reader_page_ext()
4567 cpu_buffer->reader_page->read = 0; in rb_swap_reader_page_ext()
4603 local_set(&cpu_buffer->reader_page->write, 0); in rb_swap_reader_page()
4604 local_set(&cpu_buffer->reader_page->entries, 0); in rb_swap_reader_page()
4605 local_set(&cpu_buffer->reader_page->page->commit, 0); in rb_swap_reader_page()
4606 cpu_buffer->reader_page->real_end = 0; in rb_swap_reader_page()
4616 cpu_buffer->reader_page->list.next = rb_list_head(reader->list.next); in rb_swap_reader_page()
4617 cpu_buffer->reader_page->list.prev = reader->list.prev; in rb_swap_reader_page()
4627 rb_set_list_to_head(&cpu_buffer->reader_page->list); in rb_swap_reader_page()
4652 ret = rb_head_page_replace(reader, cpu_buffer->reader_page); in rb_swap_reader_page()
4665 rb_list_head(reader->list.next)->prev = &cpu_buffer->reader_page->list; in rb_swap_reader_page()
4671 cpu_buffer->reader_page = reader; in rb_swap_reader_page()
4672 cpu_buffer->reader_page->read = 0; in rb_swap_reader_page()
4705 reader = cpu_buffer->reader_page; in rb_get_reader_page()
4708 if (cpu_buffer->reader_page->read < rb_page_size(reader)) in rb_get_reader_page()
4714 cpu_buffer->reader_page->read > page_size)) in rb_get_reader_page()
4719 if (cpu_buffer->commit_page == cpu_buffer->reader_page) in rb_get_reader_page()
4797 cpu_buffer->reader_page->read += length; in rb_advance_reader()
4929 iter->cache_reader_page != cpu_buffer->reader_page)) in rb_iter_peek()
5171 bpage = cpu_buffer->reader_page; in ring_buffer_update_view()
5201 cpu_buffer->reader_page->list.next = &cpu_buffer->head_page->list; in ring_buffer_update_view()
5416 INIT_LIST_HEAD(&cpu_buffer->reader_page->list); in rb_reset_cpu()
5418 rb_clear_buffer_page(cpu_buffer->reader_page); in rb_reset_cpu()
5902 cpu_buffer->reader_page == cpu_buffer->commit_page || in ring_buffer_read_page()
5904 struct buffer_data_page *rpage = cpu_buffer->reader_page->page; in ring_buffer_read_page()
5917 cpu_buffer->reader_page == cpu_buffer->commit_page)) in ring_buffer_read_page()
6116 cpu_pack->reader_page_va = (unsigned long)rb->reader_page->page; in trace_buffer_pack()