Lines Matching refs:tail_page
427 struct buffer_page *tail_page; member
486 struct buffer_page *tail_page; /* write to tail */ member
625 struct buffer_page *tail_page = READ_ONCE(cpu_buffer->tail_page); in verify_event() local
634 if (page == tail_page || WARN_ON_ONCE(stop++ > 100)) in verify_event()
702 return rb_fix_abs_ts(ts, cpu_buffer->tail_page->page->time_stamp); in ring_buffer_event_time_stamp()
1410 struct buffer_page *tail_page, in rb_tail_page_update() argument
1439 if (tail_page == READ_ONCE(cpu_buffer->tail_page)) { in rb_tail_page_update()
1465 if (try_cmpxchg(&cpu_buffer->tail_page, &tail_page, next_page)) in rb_tail_page_update()
1983 cpu_buffer->tail_page = bpage; in rb_meta_buffer_update()
2181 !cpu_buffer->head_page || !cpu_buffer->commit_page || !cpu_buffer->tail_page) { in rb_allocate_cpu_buffer()
2183 (cpu_buffer->head_page || cpu_buffer->commit_page || cpu_buffer->tail_page)) { in rb_allocate_cpu_buffer()
2189 if (!cpu_buffer->tail_page) in rb_allocate_cpu_buffer()
2195 cpu_buffer->tail_page = cpu_buffer->commit_page = cpu_buffer->head_page; in rb_allocate_cpu_buffer()
2480 struct list_head *tail_page, *to_remove, *next_page; in rb_remove_pages() local
2500 tail_page = &cpu_buffer->tail_page->list; in rb_remove_pages()
2506 if (cpu_buffer->tail_page == cpu_buffer->reader_page) in rb_remove_pages()
2507 tail_page = rb_list_head(tail_page->next); in rb_remove_pages()
2508 to_remove = tail_page; in rb_remove_pages()
2528 tail_page->next = (struct list_head *)((unsigned long)next_page | in rb_remove_pages()
2531 next_page->prev = tail_page; in rb_remove_pages()
3092 struct buffer_page *tail_page, in rb_handle_head_page() argument
3107 type = rb_head_page_set_update(cpu_buffer, next_page, tail_page, in rb_handle_head_page()
3218 buffer_tail_page = READ_ONCE(cpu_buffer->tail_page); in rb_handle_head_page()
3223 if (buffer_tail_page != tail_page && in rb_handle_head_page()
3237 tail_page, in rb_handle_head_page()
3252 struct buffer_page *tail_page = info->tail_page; in rb_reset_tail() local
3267 tail_page->real_end = 0; in rb_reset_tail()
3269 local_sub(length, &tail_page->write); in rb_reset_tail()
3273 event = __rb_page_index(tail_page, tail); in rb_reset_tail()
3280 tail_page->real_end = tail; in rb_reset_tail()
3304 local_sub(length, &tail_page->write); in rb_reset_tail()
3322 local_sub(length, &tail_page->write); in rb_reset_tail()
3334 struct buffer_page *tail_page = info->tail_page; in rb_move_tail() local
3340 next_page = tail_page; in rb_move_tail()
3368 if (rb_is_head_page(next_page, &tail_page->list)) { in rb_move_tail()
3385 tail_page, in rb_move_tail()
3403 cpu_buffer->tail_page) && in rb_move_tail()
3412 rb_tail_page_update(cpu_buffer, tail_page, next_page); in rb_move_tail()
3607 bpage = READ_ONCE(cpu_buffer->tail_page); in rb_try_to_discard()
3682 while (cpu_buffer->commit_page != READ_ONCE(cpu_buffer->tail_page)) { in rb_set_commit_to_write()
3686 rb_is_reader_page(cpu_buffer->tail_page))) in rb_set_commit_to_write()
3723 if (unlikely(cpu_buffer->commit_page != READ_ONCE(cpu_buffer->tail_page))) in rb_set_commit_to_write()
4150 bpage = info->tail_page->page; in check_buffer()
4206 struct buffer_page *tail_page; in __rb_reserve_next() local
4210 tail_page = info->tail_page = READ_ONCE(cpu_buffer->tail_page); in __rb_reserve_next()
4212 /*A*/ w = local_read(&tail_page->write) & RB_WRITE_MASK; in __rb_reserve_next()
4244 /*C*/ write = local_add_return(info->length, &tail_page->write); in __rb_reserve_next()
4293 /*F*/ if (write == (local_read(&tail_page->write) & RB_WRITE_MASK) && in __rb_reserve_next()
4326 event = __rb_page_index(tail_page, tail); in __rb_reserve_next()
4329 local_inc(&tail_page->entries); in __rb_reserve_next()
4336 tail_page->page->time_stamp = info->ts; in __rb_reserve_next()
4851 if (cpu_buffer->tail_page == cpu_buffer->reader_page) in ring_buffer_oldest_event_ts()
5941 cpu_buffer->tail_page = cpu_buffer->head_page; in rb_reset_cpu()
6763 cpu_buffer->tail_page = cpu_buffer->commit_page = cpu_buffer->head_page; in ring_buffer_subbuf_order_set()