Searched refs:pdu_buf (Results 1 – 3 of 3) sorted by relevance
/external/blktrace/ |
D | blkparse_fmt.c | 120 static char *dump_pdu(unsigned char *pdu_buf, int pdu_len) in dump_pdu() argument 125 if (!pdu_buf || !pdu_len) in dump_pdu() 132 len += sprintf(p + len, "%02x", pdu_buf[i]); in dump_pdu() 139 if (!pdu_buf[i] && pdu_rest_is_zero(pdu_buf + i, pdu_len - i)) { in dump_pdu() 169 int pdu_len, unsigned char *pdu_buf, char field, in print_field() argument 224 char *p = dump_pdu(pdu_buf, pdu_len); in print_field() 263 int pdu_len, unsigned char *pdu_buf, in parse_field() argument 282 print_field(act, pci, t, elapsed, pdu_len, pdu_buf, *p++, in parse_field() 290 int pdu_len, unsigned char *pdu_buf) in process_default() argument 321 char *p = dump_pdu(pdu_buf, pdu_len); in process_default() [all …]
|
D | blkrawverify.c | 197 char *pdu_buf; in process() local 199 pdu_buf = malloc(bit->pdu_len); in process() 200 n = fread(pdu_buf, bit->pdu_len, 1, ifp); in process() 204 free(pdu_buf); in process() 207 free(pdu_buf); in process()
|
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()
|