Lines Matching defs:buffer
102 int (*get_trace)(struct intel_pt_buffer *buffer, void *data);
534 struct intel_pt_buffer buffer = { .buf = 0, };
540 ret = decoder->get_trace(&buffer, decoder->data);
543 decoder->buf = buffer.buf;
544 decoder->len = buffer.len;
549 decoder->buf_timestamp = buffer.ref_timestamp;
550 if (!buffer.consecutive || reposition) {
552 decoder->ref_timestamp = buffer.ref_timestamp;
553 decoder->state.trace_nr = buffer.trace_nr;
627 /* Lookahead packets in current buffer */
2899 * intel_pt_next_psb - move buffer pointer to the start of the next PSB packet.
2900 * @buf: pointer to buffer pointer
2901 * @len: size of buffer
2903 * Updates the buffer pointer to point to the start of the next PSB packet if
2904 * there is one, otherwise the buffer pointer is unchanged. If @buf is updated,
2923 * intel_pt_step_psb - move buffer pointer to the start of the following PSB
2925 * @buf: pointer to buffer pointer
2926 * @len: size of buffer
2928 * Updates the buffer pointer to point to the start of the following PSB packet
2929 * (skipping the PSB at @buf itself) if there is one, otherwise the buffer
2951 * intel_pt_last_psb - find the last PSB packet in a buffer.
2952 * @buf: buffer
2953 * @len: size of buffer
2955 * This function finds the last PSB in a buffer.
2983 * @buf: buffer
2984 * @len: size of buffer
3055 * @buf_b: second buffer
3056 * @buf_a: first buffer
3057 * @len_a: size of first buffer
3082 * @buf_a: first buffer
3083 * @len_a: size of first buffer
3084 * @buf_b: second buffer
3085 * @len_b: size of second buffer
3146 * @buf_a: first buffer
3147 * @len_a: size of first buffer
3148 * @buf_b: second buffer
3149 * @len_b: size of second buffer
3182 * Buffer 'b' cannot end within buffer 'a' so, for comparison purposes,
3183 * we can ignore the first part of buffer 'a'.
3199 /* Try again at next PSB in buffer 'a' */
3208 * @buf_timestamp: buffer timestamp of last buffer with trace data earlier than
3218 * @buffer: Intel PT trace buffer
3221 * Determine if @buffer trace is past the fast forward timestamp.
3223 * Return: 1 (stop lookahead) if @buffer trace is past the fast forward
3226 static int intel_pt_ff_cb(struct intel_pt_buffer *buffer, void *data)
3234 buf = (unsigned char *)buffer->buf;
3235 len = buffer->len;
3241 tsc = intel_pt_8b_tsc(tsc, buffer->ref_timestamp);
3244 tsc, buffer->ref_timestamp);
3247 * If the buffer contains a timestamp earlier that the fast forward
3251 d->buf_timestamp = buffer->ref_timestamp;
3276 /* Find buffer timestamp of buffer to fast forward to */
3281 /* Walk to buffer with same buffer timestamp */