Lines Matching refs:commit
308 local_t commit; /* write committed index */ member
346 local_set(&bpage->commit, 0); in rb_init_page()
385 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
386 (unsigned int)sizeof(field.commit), in ring_buffer_print_page_header()
391 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
759 long commit, write; in verify_event() local
768 commit = local_read(&page->page->commit); in verify_event()
770 if (addr >= (unsigned long)&page->page->data[commit] && in verify_event()
1445 local_set(&next_page->page->commit, 0); in rb_tail_page_update()
2263 return local_read(&bpage->page->commit); in rb_page_commit()
2271 unsigned long commit; in rb_iter_head_event() local
2282 commit = rb_page_commit(iter_head_page); in rb_iter_head_event()
2293 if ((iter->head + length) > commit || length > BUF_MAX_DATA_SIZE) in rb_iter_head_event()
2306 commit > rb_page_commit(iter_head_page)) in rb_iter_head_event()
2974 local_set(&cpu_buffer->commit_page->page->commit, in rb_set_commit_to_write()
2983 local_set(&cpu_buffer->commit_page->page->commit, in rb_set_commit_to_write()
2986 local_read(&cpu_buffer->commit_page->page->commit) & in rb_set_commit_to_write()
3348 tail = local_read(&bpage->commit); in check_buffer()
3359 if (tail <= 8 || tail > local_read(&bpage->commit)) in check_buffer()
3872 struct buffer_page *commit = cpu_buffer->commit_page; in rb_per_cpu_empty() local
3886 if (commit == reader) in rb_per_cpu_empty()
3893 if (commit != head) in rb_per_cpu_empty()
3901 return rb_page_commit(commit) == 0; in rb_per_cpu_empty()
4316 unsigned commit; in ring_buffer_iter_empty() local
4332 commit = rb_page_commit(commit_page); in ring_buffer_iter_empty()
4346 return ((iter->head_page == commit_page && iter->head >= commit) || in ring_buffer_iter_empty()
4348 head_page->read == commit && in ring_buffer_iter_empty()
4462 local_set(&cpu_buffer->reader_page->page->commit, 0); in rb_get_reader_page()
5098 local_set(&cpu_buffer->head_page->page->commit, 0); in rb_reset_cpu()
5109 local_set(&cpu_buffer->reader_page->page->commit, 0); in rb_reset_cpu()
5520 unsigned int commit; in ring_buffer_read_page() local
5553 commit = rb_page_commit(reader); in ring_buffer_read_page()
5565 if (read || (len < (commit - read)) || in ring_buffer_read_page()
5575 if (len > (commit - read)) in ring_buffer_read_page()
5576 len = (commit - read); in ring_buffer_read_page()
5604 if (rpos >= commit) in ring_buffer_read_page()
5613 local_set(&bpage->commit, pos); in ring_buffer_read_page()
5638 local_set(&bpage->commit, reader->real_end); in ring_buffer_read_page()
5644 commit = local_read(&bpage->commit); in ring_buffer_read_page()
5652 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { in ring_buffer_read_page()
5653 memcpy(&bpage->data[commit], &missed_events, in ring_buffer_read_page()
5655 local_add(RB_MISSED_STORED, &bpage->commit); in ring_buffer_read_page()
5656 commit += sizeof(missed_events); in ring_buffer_read_page()
5658 local_add(RB_MISSED_EVENTS, &bpage->commit); in ring_buffer_read_page()
5664 if (commit < BUF_PAGE_SIZE) in ring_buffer_read_page()
5665 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); in ring_buffer_read_page()