Searched refs:pdu_buf (Results 1 – 3 of 3) sorted by relevance
/external/blktrace/ |
D | blkparse_fmt.c | 115 static char *dump_pdu(unsigned char *pdu_buf, int pdu_len) in dump_pdu() argument 120 if (!pdu_buf || !pdu_len) in dump_pdu() 127 len += sprintf(p + len, "%02x", pdu_buf[i]); in dump_pdu() 134 if (!pdu_buf[i] && pdu_rest_is_zero(pdu_buf + i, pdu_len - i)) { in dump_pdu() 164 int pdu_len, unsigned char *pdu_buf, char field, in print_field() argument 219 char *p = dump_pdu(pdu_buf, pdu_len); in print_field() 258 int pdu_len, unsigned char *pdu_buf, in parse_field() argument 277 print_field(act, pci, t, elapsed, pdu_len, pdu_buf, *p++, in parse_field() 285 int pdu_len, unsigned char *pdu_buf) in process_default() argument 316 char *p = dump_pdu(pdu_buf, pdu_len); in process_default() [all …]
|
D | blkiomon.c | 431 static int blkiomon_dump_drvdata(struct blk_io_trace *bit, void *pdu_buf) in blkiomon_dump_drvdata() argument 438 if (fwrite(pdu_buf, bit->pdu_len, 1, drvdata.fp) != 1) in blkiomon_dump_drvdata() 455 void *pdu_buf = NULL; in blkiomon_do_fifo() local 489 pdu_buf = realloc(pdu_buf, bit->pdu_len); in blkiomon_do_fifo() 490 if (fread(pdu_buf, bit->pdu_len, 1, ifp) != 1) { in blkiomon_do_fifo() 502 if (blkiomon_dump_drvdata(bit, pdu_buf)) { in blkiomon_do_fifo() 522 free(pdu_buf); in blkiomon_do_fifo()
|
D | blkrawverify.c | 196 char *pdu_buf; in process() local 198 pdu_buf = malloc(bit->pdu_len); in process() 199 n = fread(pdu_buf, bit->pdu_len, 1, ifp); in process() 205 free(pdu_buf); in process()
|