Lines Matching defs:commit

321 	local_t		 commit;	/* write committed index */
366 local_set(&bpage->commit, 0);
371 return local_read(&bpage->page->commit);
555 trace_seq_printf(s, "\tfield: local_t commit;\t"
557 (unsigned int)offsetof(typeof(field), commit),
558 (unsigned int)sizeof(field.commit),
563 (unsigned int)offsetof(typeof(field), commit),
599 long commit, write;
608 commit = local_read(&page->page->commit);
610 if (addr >= (unsigned long)&page->page->data[commit] &&
1437 * No need to worry about races with clearing out the commit.
1438 * it only can increment when a commit takes place. But that
1439 * only happens in the outer most nested commit.
1441 local_set(&next_page->page->commit, 0);
2283 unsigned long commit;
2294 commit = rb_page_commit(iter_head_page);
2298 if (iter->head > commit - 8)
2310 if ((iter->head + length) > commit || length > iter->event_size)
2323 commit > rb_page_commit(iter_head_page))
2473 * want the outer most commit to reset it.
2525 * If this was the outer most commit (the one that
2581 * We put in a discarded commit instead, to make sure
2659 * the buffer, unless the commit page is still on the
2665 * If the commit is not on the reader page, then
2688 * commit page could still be on the reader
2967 * If we own the commit event, then we can commit
2971 * assign the commit to the tail.
2986 local_set(&cpu_buffer->commit_page->page->commit,
2997 local_set(&cpu_buffer->commit_page->page->commit,
3000 local_read(&cpu_buffer->commit_page->page->commit) &
3011 * a dangling commit that will never go forward.
3039 * updating of the commit page and the clearing of the
3256 * ring_buffer_unlock_commit - commit a reserved
3257 * @buffer: The buffer to commit to
3445 tail = local_read(&bpage->commit);
3456 if (tail <= 8 || tail > local_read(&bpage->commit))
3635 * If this is the first commit on the page, then it has the same
3650 * If this is the first commit on the page, then update
3679 /* The commit page can not change after this */
3799 * to the page it is on. This may only be called before the commit
3819 * Because the commit page may be on the reader page we
3832 /* commit not part of this buffer?? */
3850 * up as discarded, and perform the commit.
3960 struct buffer_page *commit = cpu_buffer->commit_page;
3974 if (commit == reader)
3981 if (commit != head)
3989 return rb_page_commit(commit) == 0;
4405 unsigned commit;
4421 commit = rb_page_commit(commit_page);
4422 /* We want to make sure that the commit page doesn't change */
4425 /* Make sure commit page didn't change */
4429 /* If the commit page changed, then there's more data */
4435 return ((iter->head_page == commit_page && iter->head >= commit) ||
4437 head_page->read == commit &&
4552 local_set(&cpu_buffer->reader_page->page->commit, 0);
5722 unsigned int commit;
5757 commit = rb_page_size(reader);
5769 if (read || (len < (commit - read)) ||
5780 * rest of the page can be read and the commit page is off
5784 (!read || (len < (commit - read)) ||
5788 if (len > (commit - read))
5789 len = (commit - read);
5817 if (rpos >= commit)
5826 local_set(&bpage->commit, pos);
5851 local_set(&bpage->commit, reader->real_end);
5857 commit = local_read(&bpage->commit);
5859 * Set a flag in the commit field if we lost events
5865 if (buffer->subbuf_size - commit >= sizeof(missed_events)) {
5866 memcpy(&bpage->data[commit], &missed_events,
5868 local_add(RB_MISSED_STORED, &bpage->commit);
5869 commit += sizeof(missed_events);
5871 local_add(RB_MISSED_EVENTS, &bpage->commit);
5877 if (commit < buffer->subbuf_size)
5878 memset(&bpage->data[commit], 0, buffer->subbuf_size - commit);
6464 unsigned int commit;
6471 local_set(&bpage->commit, reader->real_end);
6476 commit = rb_page_size(reader);
6477 if (buffer->subbuf_size - commit >= sizeof(missed_events)) {
6478 memcpy(&bpage->data[commit], &missed_events,
6480 local_add(RB_MISSED_STORED, &bpage->commit);
6482 local_add(RB_MISSED_EVENTS, &bpage->commit);
6486 * There really shouldn't be any missed events if the commit