• Home
  • Raw
  • Download

Lines Matching refs:ofp

105 static void dump_trace(FILE *ofp, char *prefix, struct blk_io_trace *bit)  in dump_trace()  argument
107 fprintf(ofp, " Dump %s\n", prefix); in dump_trace()
108 fprintf(ofp, " %8s: %08x\n", "magic", bit->magic); in dump_trace()
109 fprintf(ofp, " %8s: %u\n", "sequence", bit->sequence); in dump_trace()
110 fprintf(ofp, " %8s: %llu\n", "time", (unsigned long long) bit->time); in dump_trace()
111 fprintf(ofp, " %8s: %llu\n", "sector", (unsigned long long) bit->sector); in dump_trace()
112 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes); in dump_trace()
113 fprintf(ofp, " %8s: %s\n", "action", act_to_str(bit->action)); in dump_trace()
114 fprintf(ofp, " %8s: %u\n", "bytes", bit->bytes); in dump_trace()
115 fprintf(ofp, " %8s: %u\n", "cpu", bit->cpu); in dump_trace()
116 fprintf(ofp, " %8s: %u\n", "error", bit->error); in dump_trace()
117 fprintf(ofp, " %8s: %u\n", "pdu_len", bit->pdu_len); in dump_trace()
118 fprintf(ofp, " %8s: (%u,%u)\n\n", "device", MAJOR(bit->device), in dump_trace()
138 fprintf(ofp, " ----------------\n"); \ in process()
139 if (bit_save) dump_trace(ofp,"seq-1",bit_save); \ in process()
140 dump_trace(ofp, str, bit); \ in process()
145 FILE *ifp, *ofp; in process() local
174 ofp = *fp; in process()
253 fprintf(ofp, " ---------------------\n"); in process()
254 fprintf(ofp, " Summary for cpu %d:\n", cpu); in process()
255 fprintf(ofp, " %10d valid + %10d invalid (%5.1f%%) processed\n\n", in process()
261 fprintf(ofp, "%8s %d traces\n", "", nbad_trace); in process()
263 fprintf(ofp, "%8s %d pdu\n", "", nbad_pdu); in process()
265 fprintf(ofp, "%8s %d cpu\n", "", nbad_cpu); in process()
267 fprintf(ofp, "%8s %d seq\n", "", nbad_seq); in process()
269 fprintf(ofp, "%8s %d dev\n", "", nbad_dev); in process()
271 fprintf(ofp, "%8s %d time\n", "", nbad_time); in process()
272 fprintf(ofp,"\n"); in process()
283 FILE *ofp; in main() local
296 ofp = NULL; in main()
310 nbad = process(&ofp, devname, fname, cpu); in main()
317 if (ofp) { in main()
318 fclose(ofp); in main()