Lines Matching refs:buffer
62 * everything in a buffer comes from the same process regardless of
64 * taken from the auxtrace buffer.
103 struct auxtrace_buffer *buffer;
737 struct auxtrace_buffer *buffer)
746 cs_etm_decoder__get_name(etmq->decoder), buffer->size);
752 etmq->decoder, buffer->offset,
753 &((u8 *)buffer->data)[buffer_used],
754 buffer->size - buffer_used, &consumed);
759 } while (buffer_used < buffer->size);
944 u64 address, size_t size, u8 *buffer,
999 offset, buffer, size);
1196 * As bs_src->entries is a circular buffer, we need to copy from it in
1198 * branch ->last_branch_pos until the end of bs_src->entries buffer.
1207 * of the bs_src->entries buffer and until the ->last_branch_pos element
1287 * The branches are recorded in a circular buffer in reverse
1289 * buffer down. After writing the first element of the stack, move the
1290 * insert position back to the end of the buffer.
1323 struct auxtrace_buffer *aux_buffer = etmq->buffer;
1339 etmq->buffer = aux_buffer;
1351 /* If valid, drop the previous buffer */
1853 * circular buffer at the end of the trace.
1898 * event for the branches left in the circular buffer at the end of
1931 * > 0 if the current buffer isn't empty yet
2312 * processing stops or there is nothing left in the buffer. Normal
2314 * decoder buffer queue.
2433 /* Go through each buffer in the queue and decode them one by one */
2439 /* Run trace decoder until buffer consumed or end of trace */
2468 /* Go through each buffer in the queue and decode them one by one */
2474 /* Run trace decoder until buffer consumed or end of trace */
2483 * buffer. But here in per-cpu mode we need to iterate
2776 * buffer that were split on aux records.
2792 struct auxtrace_buffer *buffer;
2808 event, data_offset, &buffer);
2824 if (auxtrace_buffer__get_data(buffer, fd)) {
2825 cs_etm__dump_event(etm->queues.queue_array[idx].priv, buffer);
2826 auxtrace_buffer__put_data(buffer);
2921 * Puts a fragment of an auxtrace buffer into the auxtrace queues based
2922 * on the bounds of aux_event, if it matches with the buffer that's at
2927 * is reset across each buffer, so splitting the buffers up in advance has
2977 * Found a per-cpu buffer after a per-thread one was
2988 * Clamp size in snapshot mode. The buffer size is clamped in
2990 * the buffer size.
2995 * In this mode, the head also points to the end of the buffer so aux_offset
3007 * If this AUX event was inside this buffer somewhere, create a new auxtrace event
3015 pr_debug3("CS ETM: Queue buffer size: %#"PRI_lx64" offset: %#"PRI_lx64
3028 /* Wasn't inside this buffer, but there were no parse errors. 1 == 'not found' */
3066 * CPU or PID can be matched to an AUXTRACE buffer's CPU or PID.
3076 * Loop through the auxtrace index to find the buffer that matches up with this aux event.
3093 * Couldn't find the buffer corresponding to this aux record, something went wrong. Warn but
3096 pr_err("CS ETM: Couldn't find auxtrace buffer for aux_offset: %#"PRI_lx64