Lines Matching refs:buffer
35 if ((s)->buffer == TRACE_SEQ_POISON) \
48 s->buffer = malloc_or_die(s->buffer_size);
66 * @s: a pointer to the trace_seq to free the buffer
68 * Only frees the buffer, not the trace_seq struct itself.
75 free(s->buffer);
76 s->buffer = TRACE_SEQ_POISON;
82 s->buffer = realloc(s->buffer, s->buffer_size);
83 if (!s->buffer)
84 die("Can't allocate trace_seq buffer memory");
92 * It returns 0 if the trace oversizes the buffer's free
98 * buffer (@s). Then the output may be either used by
99 * the sequencer or pulled into another buffer.
114 ret = vsnprintf(s->buffer + s->len, len, fmt, ap);
135 * buffer (@s). Then the output may be either used by
136 * the sequencer or pulled into another buffer.
149 ret = vsnprintf(s->buffer + s->len, len, fmt, args);
168 * into a special buffer (@s) for later retrieval by a sequencer
182 memcpy(s->buffer + s->len, str, len);
195 s->buffer[s->len++] = c;
204 /* There's always one character left on the buffer */
205 s->buffer[s->len] = 0;
211 return printf("%.*s", s->len, s->buffer);