Lines Matching defs:buf
28 char *buf;
67 static void intel_pt_print_data(const unsigned char *buf, int len, uint64_t pos,
77 fprintf(f, " %02x", buf[i]);
96 static ssize_t log_buf__write(void *cookie, const char *buf, size_t size)
101 if (!b->buf)
108 memcpy(b->buf + b->head, buf, n);
110 buf += n;
124 zfree(&b->buf);
138 b->buf = malloc(b->buf_sz);
142 zfree(&b->buf);
169 if (!b->buf)
176 write_lines(b->buf + b->head, b->buf_sz - b->head, b->backend, &remove_first);
178 write_lines(b->buf, b->head, b->backend, &remove_first);
213 uint64_t pos, const unsigned char *buf)
220 intel_pt_print_data(buf, pkt_len, pos, 0);
235 intel_pt_print_data(intel_pt_insn->buf, len, ip, 8);