Lines Matching refs:buffer

118 	int (*get_trace)(struct intel_pt_buffer *buffer, void *data);
636 struct intel_pt_buffer buffer = { .buf = 0, };
642 ret = decoder->get_trace(&buffer, decoder->data);
645 decoder->buf = buffer.buf;
646 decoder->len = buffer.len;
651 decoder->buf_timestamp = buffer.ref_timestamp;
652 if (!buffer.consecutive || reposition) {
654 decoder->ref_timestamp = buffer.ref_timestamp;
655 decoder->state.trace_nr = buffer.trace_nr;
730 /* Lookahead packets in current buffer */
2508 * The buffer is mmapped from the data file, so this also updates the
2682 * the next host TSC in the same buffer, but we don't bother to
2706 * at the start of a buffer.
4077 * intel_pt_next_psb - move buffer pointer to the start of the next PSB packet.
4078 * @buf: pointer to buffer pointer
4079 * @len: size of buffer
4081 * Updates the buffer pointer to point to the start of the next PSB packet if
4082 * there is one, otherwise the buffer pointer is unchanged. If @buf is updated,
4101 * intel_pt_step_psb - move buffer pointer to the start of the following PSB
4103 * @buf: pointer to buffer pointer
4104 * @len: size of buffer
4106 * Updates the buffer pointer to point to the start of the following PSB packet
4107 * (skipping the PSB at @buf itself) if there is one, otherwise the buffer
4129 * intel_pt_last_psb - find the last PSB packet in a buffer.
4130 * @buf: buffer
4131 * @len: size of buffer
4133 * This function finds the last PSB in a buffer.
4161 * @buf: buffer
4162 * @len: size of buffer
4233 * @buf_b: second buffer
4234 * @buf_a: first buffer
4235 * @len_a: size of first buffer
4260 * @buf_a: first buffer
4261 * @len_a: size of first buffer
4262 * @buf_b: second buffer
4263 * @len_b: size of second buffer
4326 * @buf_a: first buffer
4327 * @len_a: size of first buffer
4328 * @buf_b: second buffer
4329 * @len_b: size of second buffer
4364 * Buffer 'b' cannot end within buffer 'a' so, for comparison purposes,
4365 * we can ignore the first part of buffer 'a'.
4381 /* Try again at next PSB in buffer 'a' */
4390 * @buf_timestamp: buffer timestamp of last buffer with trace data earlier than
4400 * @buffer: Intel PT trace buffer
4403 * Determine if @buffer trace is past the fast forward timestamp.
4405 * Return: 1 (stop lookahead) if @buffer trace is past the fast forward
4408 static int intel_pt_ff_cb(struct intel_pt_buffer *buffer, void *data)
4416 buf = (unsigned char *)buffer->buf;
4417 len = buffer->len;
4423 tsc = intel_pt_8b_tsc(tsc, buffer->ref_timestamp);
4426 tsc, buffer->ref_timestamp);
4429 * If the buffer contains a timestamp earlier that the fast forward
4433 d->buf_timestamp = buffer->ref_timestamp;
4458 /* Find buffer timestamp of buffer to fast forward to */
4463 /* Walk to buffer with same buffer timestamp */