Home | History | Annotate | Download | only in traceevent

Lines Matching refs:subbuffer

43  * @lost_events		- # of lost events between this subbuffer and previous
45 * @subbuffer - pointer to the sub-buffer page
52 * @start - The offset from @subbuffer where @data lives
62 void *subbuffer;
487 * Increments the pointers into the subbuffer of the kbuffer to point to the
491 * Returns the data of the next event if a new event exists on the subbuffer,
498 if (!kbuf || !kbuf->subbuffer)
512 * kbuffer_load_subbuffer - load a new subbuffer into the kbuffer
514 * @subbuffer: The subbuffer to load into @kbuf.
516 * Load a new subbuffer (page) into @kbuf. This will reset all
518 * return the first event on @subbuffer.
522 int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer)
525 void *ptr = subbuffer;
527 if (!kbuf || !subbuffer)
530 kbuf->subbuffer = subbuffer;
542 kbuf->data = subbuffer + kbuf->start;
565 * kbuffer_read_event - read the next event in the kbuffer subbuffer
570 * NULL if no event is left on the subbuffer.
574 if (!kbuf || !kbuf->subbuffer)
599 * @offset: The offset into the subbuffer
602 * The @offset must be an index from the @kbuf subbuffer beginning.
603 * If @offset is bigger than the stored subbuffer, NULL will be returned.
625 kbuffer_load_subbuffer(kbuf, kbuf->subbuffer);
637 * kbuffer_subbuffer_size - the size of the loaded subbuffer
640 * Returns the size of the subbuffer. Note, this size is
641 * where the last event resides. The stored subbuffer may actually be
654 * the subbuffer to the current location. Note this is not
655 * from the start of the subbuffer. An index of zero will
668 * Returns the offset from the start of the subbuffer to the
705 * event. Note, only events on the beginning of a subbuffer can