Searched refs:pdu_buf (Results 1 - 3 of 3) sorted by relevance

/external/blktrace/
H A Dblkparse_fmt.c115 static char *dump_pdu(unsigned char *pdu_buf, int pdu_len) argument
120 if (!pdu_buf || !pdu_len)
127 len += sprintf(p + len, "%02x", pdu_buf[i]);
134 if (!pdu_buf[i] && pdu_rest_is_zero(pdu_buf + i, pdu_len - i)) {
164 int pdu_len, unsigned char *pdu_buf, char field,
219 char *p = dump_pdu(pdu_buf, pdu_len);
258 int pdu_len, unsigned char *pdu_buf,
277 print_field(act, pci, t, elapsed, pdu_len, pdu_buf, *p++,
285 int pdu_len, unsigned char *pdu_buf)
162 print_field(char *act, struct per_cpu_info *pci, struct blk_io_trace *t, unsigned long long elapsed, int pdu_len, unsigned char *pdu_buf, char field, int minus, int has_w, int width) argument
256 parse_field(char *act, struct per_cpu_info *pci, struct blk_io_trace *t, unsigned long long elapsed, int pdu_len, unsigned char *pdu_buf, char *master_format) argument
283 process_default(char *act, struct per_cpu_info *pci, struct blk_io_trace *t, unsigned long long elapsed, int pdu_len, unsigned char *pdu_buf) argument
418 process_fmt(char *act, struct per_cpu_info *pci, struct blk_io_trace *t, unsigned long long elapsed, int pdu_len, unsigned char *pdu_buf) argument
[all...]
H A Dblkrawverify.c196 char *pdu_buf; local
198 pdu_buf = malloc(bit->pdu_len);
199 n = fread(pdu_buf, bit->pdu_len, 1, ifp);
205 free(pdu_buf);
H A Dblkiomon.c431 static int blkiomon_dump_drvdata(struct blk_io_trace *bit, void *pdu_buf) argument
438 if (fwrite(pdu_buf, bit->pdu_len, 1, drvdata.fp) != 1)
455 void *pdu_buf = NULL; local
489 pdu_buf = realloc(pdu_buf, bit->pdu_len);
490 if (fread(pdu_buf, bit->pdu_len, 1, ifp) != 1) {
502 if (blkiomon_dump_drvdata(bit, pdu_buf)) {
522 free(pdu_buf);

Completed in 327 milliseconds