Lines Matching refs:commit

317 	local_t		 commit;	/* write committed index */
361 local_set(&bpage->commit, 0);
366 return local_read(&bpage->page->commit);
544 trace_seq_printf(s, "\tfield: local_t commit;\t"
546 (unsigned int)offsetof(typeof(field), commit),
547 (unsigned int)sizeof(field.commit),
552 (unsigned int)offsetof(typeof(field), commit),
588 long commit, write;
597 commit = local_read(&page->page->commit);
599 if (addr >= (unsigned long)&page->page->data[commit] &&
1426 * No need to worry about races with clearing out the commit.
1427 * it only can increment when a commit takes place. But that
1428 * only happens in the outer most nested commit.
1430 local_set(&next_page->page->commit, 0);
2264 unsigned long commit;
2275 commit = rb_page_commit(iter_head_page);
2279 if (iter->head > commit - 8)
2291 if ((iter->head + length) > commit || length > iter->event_size)
2304 commit > rb_page_commit(iter_head_page))
2454 * want the outer most commit to reset it.
2506 * If this was the outer most commit (the one that
2562 * We put in a discarded commit instead, to make sure
2640 * the buffer, unless the commit page is still on the
2646 * If the commit is not on the reader page, then
2669 * commit page could still be on the reader
2948 * If we own the commit event, then we can commit
2952 * assign the commit to the tail.
2967 local_set(&cpu_buffer->commit_page->page->commit,
2978 local_set(&cpu_buffer->commit_page->page->commit,
2981 local_read(&cpu_buffer->commit_page->page->commit) &
2992 * a dangling commit that will never go forward.
3020 * updating of the commit page and the clearing of the
3237 * ring_buffer_unlock_commit - commit a reserved
3238 * @buffer: The buffer to commit to
3426 tail = local_read(&bpage->commit);
3437 if (tail <= 8 || tail > local_read(&bpage->commit))
3616 * If this is the first commit on the page, then it has the same
3631 * If this is the first commit on the page, then update
3660 /* The commit page can not change after this */
3780 * to the page it is on. This may only be called before the commit
3800 * Because the commit page may be on the reader page we
3813 /* commit not part of this buffer?? */
3831 * up as discarded, and perform the commit.
3941 struct buffer_page *commit = cpu_buffer->commit_page;
3955 if (commit == reader)
3962 if (commit != head)
3970 return rb_page_commit(commit) == 0;
4386 unsigned commit;
4402 commit = rb_page_commit(commit_page);
4403 /* We want to make sure that the commit page doesn't change */
4406 /* Make sure commit page didn't change */
4410 /* If the commit page changed, then there's more data */
4416 return ((iter->head_page == commit_page && iter->head >= commit) ||
4418 head_page->read == commit &&
4533 local_set(&cpu_buffer->reader_page->page->commit, 0);
5688 unsigned int commit;
5723 commit = rb_page_commit(reader);
5735 if (read || (len < (commit - read)) ||
5745 * rest of the page can be read and the commit page is off
5749 (!read || (len < (commit - read)) ||
5753 if (len > (commit - read))
5754 len = (commit - read);
5782 if (rpos >= commit)
5791 local_set(&bpage->commit, pos);
5816 local_set(&bpage->commit, reader->real_end);
5822 commit = local_read(&bpage->commit);
5824 * Set a flag in the commit field if we lost events
5830 if (buffer->subbuf_size - commit >= sizeof(missed_events)) {
5831 memcpy(&bpage->data[commit], &missed_events,
5833 local_add(RB_MISSED_STORED, &bpage->commit);
5834 commit += sizeof(missed_events);
5836 local_add(RB_MISSED_EVENTS, &bpage->commit);
5842 if (commit < buffer->subbuf_size)
5843 memset(&bpage->data[commit], 0, buffer->subbuf_size - commit);