Searched refs:pdu_len (Results 1 - 12 of 12) sorted by relevance

/external/blktrace/btt/
H A Dmmap.c69 tp->pdu_len = be16_to_cpu(t->pdu_len);
72 if (tp->pdu_len) {
73 *pdu = malloc(tp->pdu_len);
74 memcpy(*pdu, t+1, tp->pdu_len);
78 return sizeof(*tp) + tp->pdu_len;
H A Dtrace.c60 char msg[iop->t.pdu_len + 1];
65 memcpy(msg, iop->pdu, iop->t.pdu_len);
66 msg[iop->t.pdu_len] = '\0';
/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)
123 for (len = 0, i = 0; i < pdu_len; 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)
316 char *p = dump_pdu(pdu_buf, pdu_len);
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.c116 fprintf(ofp, " %8s: %u\n", "pdu_len", bit->pdu_len);
195 if (bit->pdu_len) {
198 pdu_buf = malloc(bit->pdu_len);
199 n = fread(pdu_buf, bit->pdu_len, 1, ifp);
H A Dblktrace.h119 t->pdu_len = be16_to_cpu(t->pdu_len);
H A Dblkiomon.c124 fprintf(debug.fp, "pdu_len %16d\n", bit->pdu_len);
151 fprintf(debug.fp, "pdu_len %16d %16d\n", bit1->pdu_len, bit2->pdu_len);
438 if (fwrite(pdu_buf, bit->pdu_len, 1, drvdata.fp) != 1)
488 if (bit->pdu_len) {
489 pdu_buf = realloc(pdu_buf, bit->pdu_len);
490 if (fread(pdu_buf, bit->pdu_len, 1, ifp) != 1) {
H A Dblktrace_api.h106 __u16 pdu_len; /* length of data after this trace */ member in struct:blk_io_trace
H A Dblkparse.c584 if (bit->pdu_len != sizeof(two32))
602 if (bit->pdu_len > 0) {
603 char msg[bit->pdu_len+1];
605 memcpy(msg, (char *)payload, bit->pdu_len);
606 msg[bit->pdu_len] = '\0';
753 if (bit_alloc_cache < 1024 && !bit->pdu_len) {
1469 process_fmt(act, pci, t, -1ULL, t->pdu_len, buf);
1624 output_binary(t, sizeof(*t) + t->pdu_len);
2141 return bit->pdu_len;
2143 return __bswap_16(bit->pdu_len);
2162 int pdu_len, should_block, ret; local
2319 int ret, pdu_len, ndone = 0; local
[all...]
H A Dblktrace.c1352 t_len = sizeof(*t) + t->pdu_len;
/external/tcpdump/
H A Dprint-isoclns.c561 u_int8_t pdu_len[2]; member in struct:isis_iih_lan_header
570 u_int8_t pdu_len[2]; member in struct:isis_iih_ptp_header
575 u_int8_t pdu_len[2]; member in struct:isis_lsp_header
584 u_int8_t pdu_len[2]; member in struct:isis_csnp_header
591 u_int8_t pdu_len[2]; member in struct:isis_psnp_header
1747 u_short packet_len,pdu_len; local
1897 pdu_len=EXTRACT_16BITS(header_iih_lan->pdu_len);
1898 if (packet_len>pdu_len) {
1899 packet_len=pdu_len; /* d
[all...]
H A Dprint-ldp.c503 u_short pdu_len,msg_len,msg_type,msg_tlen; local
521 pdu_len = EXTRACT_16BITS(&ldp_com_header->pdu_length);
526 pdu_len);
533 tlen=pdu_len;
609 return pdu_len+4;
/external/blktrace/btreplay/
H A Dbtrecord.c490 __u16 pdu_len; local
516 pdu_len = t.pdu_len;
523 pdu_len = be16_to_cpu(t.pdu_len);
527 if (pdu_len) {
528 char buf[pdu_len];
530 ret = read(iip->ifd, buf, pdu_len);
535 else if (ret < (ssize_t)pdu_len) {

Completed in 183 milliseconds