Lines Matching refs:bit

104 static void dump_trace(FILE *ofp, char *prefix, struct blk_io_trace *bit)  in dump_trace()  argument
107 fprintf(ofp, " %8s: %08x\n", "magic", bit->magic); in dump_trace()
108 fprintf(ofp, " %8s: %u\n", "sequence", bit->sequence); in dump_trace()
109 fprintf(ofp, " %8s: %llu\n", "time", (unsigned long long) bit->time); in dump_trace()
110 fprintf(ofp, " %8s: %llu\n", "sector", (unsigned long long) bit->sector); in dump_trace()
111 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes); in dump_trace()
112 fprintf(ofp, " %8s: %s\n", "action", act_to_str(bit->action)); in dump_trace()
113 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes); in dump_trace()
114 fprintf(ofp, " %8s: %u\n", "cpu", bit->cpu); in dump_trace()
115 fprintf(ofp, " %8s: %u\n", "error", bit->error); in dump_trace()
116 fprintf(ofp, " %8s: %u\n", "pdu_len", bit->pdu_len); in dump_trace()
117 fprintf(ofp, " %8s: (%u,%u)\n\n", "device", MAJOR(bit->device), in dump_trace()
118 MINOR(bit->device)); in dump_trace()
126 bit_save = bit; \ in process()
127 bit = tmp; \ in process()
130 bit_save = bit; \ in process()
131 bit = malloc(sizeof(struct blk_io_trace)); \ in process()
139 dump_trace(ofp, str, bit); \ in process()
148 struct blk_io_trace *bit = malloc(sizeof(struct blk_io_trace)); in process() local
174 while ((n = fread(bit, sizeof(struct blk_io_trace), 1, ifp)) == 1) { in process()
181 check_data_endianness(bit->magic); in process()
183 trace_to_cpu(bit); in process()
185 if (!CHECK_MAGIC(bit)) { in process()
190 if ((bit->magic & 0xff) != SUPPORTED_VERSION) { in process()
195 if (bit->pdu_len) { in process()
198 pdu_buf = malloc(bit->pdu_len); in process()
199 n = fread(pdu_buf, bit->pdu_len, 1, ifp); in process()
208 if (bit->cpu != cpu) { in process()
217 if (bit->action & BLK_TC_ACT(BLK_TC_NOTIFY)) in process()
221 if (bit->sequence <= save_sequence) { in process()
226 else if (bit->time <= save_time) { in process()
231 else if (bit->device != save_device) { in process()
238 save_sequence = bit->sequence; in process()
239 save_time = bit->time; in process()
240 save_device = bit->device; in process()