Lines Matching refs:ofp
104 static void dump_trace(FILE *ofp, char *prefix, struct blk_io_trace *bit)
106 fprintf(ofp, " Dump %s\n", prefix);
107 fprintf(ofp, " %8s: %08x\n", "magic", bit->magic);
108 fprintf(ofp, " %8s: %u\n", "sequence", bit->sequence);
109 fprintf(ofp, " %8s: %llu\n", "time", (unsigned long long) bit->time);
110 fprintf(ofp, " %8s: %llu\n", "sector", (unsigned long long) bit->sector);
111 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes);
112 fprintf(ofp, " %8s: %s\n", "action", act_to_str(bit->action));
113 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes);
114 fprintf(ofp, " %8s: %u\n", "cpu", bit->cpu);
115 fprintf(ofp, " %8s: %u\n", "error", bit->error);
116 fprintf(ofp, " %8s: %u\n", "pdu_len", bit->pdu_len);
117 fprintf(ofp, " %8s: (%u,%u)\n\n", "device", MAJOR(bit->device),
137 fprintf(ofp, " ----------------\n"); \
138 if (bit_save) dump_trace(ofp,"seq-1",bit_save); \
139 dump_trace(ofp, str, bit); \
144 FILE *ifp, *ofp;
173 ofp = *fp;
251 fprintf(ofp, " ---------------------\n");
252 fprintf(ofp, " Summary for cpu %d:\n", cpu);
253 fprintf(ofp, " %10d valid + %10d invalid (%5.1f%%) processed\n\n",
259 fprintf(ofp, "%8s %d traces\n", "", nbad_trace);
261 fprintf(ofp, "%8s %d pdu\n", "", nbad_pdu);
263 fprintf(ofp, "%8s %d cpu\n", "", nbad_cpu);
265 fprintf(ofp, "%8s %d seq\n", "", nbad_seq);
267 fprintf(ofp, "%8s %d dev\n", "", nbad_dev);
269 fprintf(ofp, "%8s %d time\n", "", nbad_time);
270 fprintf(ofp,"\n");
281 FILE *ofp;
294 ofp = NULL;
308 nbad = process(&ofp, devname, fname, cpu);
315 if (ofp) {
316 fclose(ofp);