Lines Matching refs:commit
328 local_set(&bpage->commit, 0); in rb_init_page()
333 return local_read(&bpage->page->commit); in rb_page_commit()
356 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
357 (unsigned int)sizeof(field.commit), in ring_buffer_print_page_header()
362 (unsigned int)offsetof(typeof(field), commit), in ring_buffer_print_page_header()
708 long commit, write; in verify_event() local
717 commit = local_read(&page->page->commit); in verify_event()
719 if (addr >= (unsigned long)&page->page->data[commit] && in verify_event()
1505 local_set(&next_page->page->commit, 0); in rb_tail_page_update()
2339 unsigned long commit; in rb_iter_head_event() local
2350 commit = rb_page_commit(iter_head_page); in rb_iter_head_event()
2354 if (iter->head > commit - 8) in rb_iter_head_event()
2366 if ((iter->head + length) > commit || length > BUF_PAGE_SIZE) in rb_iter_head_event()
2379 commit > rb_page_commit(iter_head_page)) in rb_iter_head_event()
3038 local_set(&cpu_buffer->commit_page->page->commit, in rb_set_commit_to_write()
3049 local_set(&cpu_buffer->commit_page->page->commit, in rb_set_commit_to_write()
3052 local_read(&cpu_buffer->commit_page->page->commit) & in rb_set_commit_to_write()
3407 tail = local_read(&bpage->commit); in check_buffer()
3418 if (tail <= 8 || tail > local_read(&bpage->commit)) in check_buffer()
3937 struct buffer_page *commit = cpu_buffer->commit_page; in rb_per_cpu_empty() local
3951 if (commit == reader) in rb_per_cpu_empty()
3958 if (commit != head) in rb_per_cpu_empty()
3966 return rb_page_commit(commit) == 0; in rb_per_cpu_empty()
4387 unsigned commit; in ring_buffer_iter_empty() local
4403 commit = rb_page_commit(commit_page); in ring_buffer_iter_empty()
4417 return ((iter->head_page == commit_page && iter->head >= commit) || in ring_buffer_iter_empty()
4419 head_page->read == commit && in ring_buffer_iter_empty()
4605 local_set(&cpu_buffer->reader_page->page->commit, 0); in rb_swap_reader_page()
5856 unsigned int commit; in ring_buffer_read_page() local
5889 commit = rb_page_commit(reader); in ring_buffer_read_page()
5901 if (read || (len < (commit - read)) || in ring_buffer_read_page()
5916 (!read || (len < (commit - read)) || in ring_buffer_read_page()
5920 if (len > (commit - read)) in ring_buffer_read_page()
5921 len = (commit - read); in ring_buffer_read_page()
5949 if (rpos >= commit) in ring_buffer_read_page()
5958 local_set(&bpage->commit, pos); in ring_buffer_read_page()
5983 local_set(&bpage->commit, reader->real_end); in ring_buffer_read_page()
5989 commit = local_read(&bpage->commit); in ring_buffer_read_page()
5997 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { in ring_buffer_read_page()
5998 memcpy(&bpage->data[commit], &missed_events, in ring_buffer_read_page()
6000 local_add(RB_MISSED_STORED, &bpage->commit); in ring_buffer_read_page()
6001 commit += sizeof(missed_events); in ring_buffer_read_page()
6003 local_add(RB_MISSED_EVENTS, &bpage->commit); in ring_buffer_read_page()
6009 if (commit < BUF_PAGE_SIZE) in ring_buffer_read_page()
6010 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); in ring_buffer_read_page()