Lines Matching refs:subbuffer
28 * @lost_events - # of lost events between this subbuffer and previous
30 * @subbuffer - pointer to the sub-buffer page
37 * @start - The offset from @subbuffer where @data lives
47 void *subbuffer;
475 * Increments the pointers into the subbuffer of the kbuffer to point to the
479 * Returns the data of the next event if a new event exists on the subbuffer,
486 if (!kbuf || !kbuf->subbuffer)
500 * kbuffer_load_subbuffer - load a new subbuffer into the kbuffer
502 * @subbuffer: The subbuffer to load into @kbuf.
504 * Load a new subbuffer (page) into @kbuf. This will reset all
506 * return the first event on @subbuffer.
510 int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer)
513 void *ptr = subbuffer;
515 if (!kbuf || !subbuffer)
518 kbuf->subbuffer = subbuffer;
530 kbuf->data = subbuffer + kbuf->start;
555 * @subbuf: The subbuffer to read from.
557 * Return the timestamp from a subbuffer.
581 * kbuffer_read_event - read the next event in the kbuffer subbuffer
586 * NULL if no event is left on the subbuffer.
590 if (!kbuf || !kbuf->subbuffer)
615 * @offset: The offset into the subbuffer
618 * The @offset must be an index from the @kbuf subbuffer beginning.
619 * If @offset is bigger than the stored subbuffer, NULL will be returned.
641 kbuffer_load_subbuffer(kbuf, kbuf->subbuffer);
654 * kbuffer_subbuffer_size - the size of the loaded subbuffer
657 * Returns the size of the subbuffer. Note, this size is
658 * where the last event resides. The stored subbuffer may actually be
671 * the subbuffer to the current location. Note this is not
672 * from the start of the subbuffer. An index of zero will
685 * Returns the offset from the start of the subbuffer to the
722 * event. Note, only events on the beginning of a subbuffer can
752 * kbuffer_start_of_data - return offset of where data starts on subbuffer
755 * Returns the location on the subbuffer where the data starts.
765 * @subbuf: Start of mapped subbuffer