• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/trace/

Lines Matching refs:commit

329 	local_t		 commit;	/* write committed index */
367 local_set(&bpage->commit, 0);
378 return local_read(&((struct buffer_data_page *)page)->commit)
420 ret = trace_seq_printf(s, "\tfield: local_t commit;\t"
422 (unsigned int)offsetof(typeof(field), commit),
423 (unsigned int)sizeof(field.commit),
428 (unsigned int)offsetof(typeof(field), commit),
885 * No need to worry about races with clearing out the commit.
886 * it only can increment when a commit takes place. But that
887 * only happens in the outer most nested commit.
889 local_set(&next_page->page->commit, 0);
1429 return local_read(&bpage->page->commit);
1478 * If we own the commit event, then we can commit
1482 * assign the commit to the tail.
1493 local_set(&cpu_buffer->commit_page->page->commit,
1504 local_set(&cpu_buffer->commit_page->page->commit,
1507 local_read(&cpu_buffer->commit_page->page->commit) &
1518 * a dangling commit that will never go forward.
1677 * want the outer most commit to reset it.
1726 * If this was the outer most commit (the one that
1798 * We put in a discarded commit instead, to make sure
1861 * the buffer, unless the commit page is still on the
1867 * If the commit is not on the reader page, then
1888 * commit page could still be on the reader
1961 * If this is the first commit on the page, then update
2052 /* let the caller know this was the commit */
2097 * updating of the commit page and the clearing of the
2114 int commit = 0;
2151 * Only the first commit can update the timestamp.
2156 * commit will be something other than zero.
2175 commit = rb_add_time_stamp(cpu_buffer, &ts, &delta);
2176 if (commit == -EBUSY)
2179 if (commit == -EAGAIN)
2182 RB_WARN_ON(cpu_buffer, commit < 0);
2312 * The event first in the commit queue updates the
2328 * ring_buffer_unlock_commit - commit a reserved
2329 * @buffer: The buffer to commit to
2330 * @event: The event pointer to commit.
2367 * to the page it is on. This may only be called before the commit
2387 * Because the commit page may be on the reader page we
2400 /* commit not part of this buffer?? */
2418 * up as discarded, and perform the commit.
2447 * The commit is still visible by the reader, so we
2527 struct buffer_page *commit = cpu_buffer->commit_page;
2534 (commit == reader ||
2535 (commit == head &&
2536 head->read == rb_page_commit(commit)));
2883 local_set(&cpu_buffer->reader_page->page->commit, 0);
3134 if (iter->head >= local_read(&iter->head_page->page->commit)) {
3464 local_set(&cpu_buffer->head_page->page->commit, 0);
3474 local_set(&cpu_buffer->reader_page->page->commit, 0);
3767 unsigned int commit;
3800 commit = rb_page_commit(reader);
3812 if (read || (len < (commit - read)) ||
3822 if (len > (commit - read))
3823 len = (commit - read);
3843 if (rpos >= commit)
3851 local_set(&bpage->commit, pos);
3875 local_set(&bpage->commit, reader->real_end);
3881 commit = local_read(&bpage->commit);
3883 * Set a flag in the commit field if we lost events
3889 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) {
3890 memcpy(&bpage->data[commit], &missed_events,
3892 local_add(RB_MISSED_STORED, &bpage->commit);
3893 commit += sizeof(missed_events);
3895 local_add(RB_MISSED_EVENTS, &bpage->commit);
3901 if (commit < BUF_PAGE_SIZE)
3902 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit);