Home
last modified time | relevance | path

Searched refs:ofp (Results 1 – 25 of 28) sorted by relevance

12

/external/blktrace/btt/
Doutput.c56 void output_section_hdr(FILE *ofp, char *hdr) in output_section_hdr() argument
58 fprintf(ofp, "==================== "); in output_section_hdr()
59 fprintf(ofp, "%s", hdr); in output_section_hdr()
60 fprintf(ofp, " ====================\n\n"); in output_section_hdr()
63 void output_hdr(FILE *ofp, char *hdr) in output_hdr() argument
65 fprintf(ofp, "%15s %13s %13s %13s %11s\n", in output_hdr()
67 fprintf(ofp, "--------------- ------------- ------------- ------------- -----------\n"); in output_hdr()
70 void __output_avg(FILE *ofp, char *hdr, struct avg_info *ap, int do_easy) in __output_avg() argument
74 fprintf(ofp, "%-15s %13.9f %13.9f %13.9f %11d\n", hdr, in __output_avg()
96 FILE *ofp; member
[all …]
Dp_live.c35 FILE *ofp; member
45 FILE *ofp; in do_open() local
52 ofp = my_fopen(nm, "w"); in do_open()
53 if (ofp) in do_open()
54 add_file(ofp, nm); in do_open()
59 ofp = NULL; in do_open()
61 return ofp; in do_open()
132 if (gip->ofp) { in p_live_visit()
136 fprintf(gip->ofp, "%.9lf %.1f\n", gip->last_0, y0); in p_live_visit()
137 fprintf(gip->ofp, "%.9lf %.1f\n", BIT_TIME(plp->dt), y0); in p_live_visit()
[all …]
Dtrace_complete.c23 static inline void __out(FILE *ofp, __u64 tm, enum iop_type type, in __out() argument
28 fprintf(ofp, " "); in __out()
29 fprintf(ofp, "%5d.%09lu %c %10llu+%-4u\n", in __out()
35 static void display_io_track(FILE *ofp, struct io *iop) in display_io_track() argument
37 fprintf(ofp, "%3d,%-3d: ", MAJOR(iop->t.device), MINOR(iop->t.device)); in display_io_track()
38 __out(ofp, iop->t.time, IOP_Q, iop->t.sector, t_sec(&iop->t), 0); in display_io_track()
41 __out(ofp, iop->g_time, IOP_G, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
43 __out(ofp, iop->i_time, IOP_I, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
45 __out(ofp, iop->m_time, IOP_M, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
47 __out(ofp, iop->d_time, IOP_D, iop->d_sec, iop->d_nsec, 1); in display_io_track()
[all …]
Dargs.c254 FILE *ofp = my_fopen(fname, "w"); in setup_ofile() local
256 if (!ofp) { in setup_ofile()
262 setbuffer(ofp, buf, SETBUFFER_SIZE); in setup_ofile()
264 add_file(ofp, fname); in setup_ofile()
267 return ofp; in setup_ofile()
Dlatency.c23 static inline void latency_out(FILE *ofp, __u64 tstamp, __u64 latency) in latency_out() argument
25 if (ofp) in latency_out()
26 fprintf(ofp, "%lf %lf\n", TO_SEC(tstamp), TO_SEC(latency)); in latency_out()
Dmisc.c36 FILE *ofp; member
56 fclose(fip->ofp); in clean_files()
116 fip->ofp = fp; in add_file()
Dinlines.h364 static inline void __dump_iop(FILE *ofp, struct io *iop, int extra_nl) in __dump_iop() argument
366 fprintf(ofp, "%5d.%09lu %3d,%-3d %c %10llu+%-4u\n", in __dump_iop()
371 if (extra_nl) fprintf(ofp, "\n"); in __dump_iop()
374 static inline void __dump_iop2(FILE *ofp, struct io *a_iop, struct io *l_iop) in __dump_iop2() argument
376 fprintf(ofp, "%5d.%09lu %3d,%-3d %c %10llu+%-4u <- (%3d,%-3d) %10llu\n", in __dump_iop2()
Dglobals.h267 int output_avgs(FILE *ofp);
268 int output_ranges(FILE *ofp);
/external/blktrace/
Dblkparse_fmt.c184 fprintf(ofp, strcat(format, "s"), act); in print_field()
187 fprintf(ofp, strcat(format, "d"), pci->cpu); in print_field()
192 fprintf(ofp, strcat(format, "s"), name); in print_field()
199 fprintf(ofp, strcat(format, "s"), rwbs); in print_field()
203 fprintf(ofp,"%3d,%-3d", MAJOR(t->device), MINOR(t->device)); in print_field()
206 fprintf(ofp, strcat(format, "d"), t->error); in print_field()
209 fprintf(ofp, strcat(format, "d"), MAJOR(t->device)); in print_field()
212 fprintf(ofp, strcat(format, "d"), MINOR(t->device)); in print_field()
215 fprintf(ofp, strcat(format, "u"), t_sec(t)); in print_field()
218 fprintf(ofp, strcat(format, "u"), t->bytes); in print_field()
[all …]
Dblkrawverify.c105 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()
[all …]
Dblkparse.c261 FILE *ofp = NULL; variable
610 fprintf(ofp, in handle_notify()
1671 fprintf(ofp, "%s\n", msg); in dump_io_stats()
1673 fprintf(ofp, " Reads Queued: %s, %siB\t", in dump_io_stats()
1676 fprintf(ofp, " Writes Queued: %s, %siB\n", in dump_io_stats()
1679 fprintf(ofp, " Read Dispatches: %s, %siB\t", in dump_io_stats()
1682 fprintf(ofp, " Write Dispatches: %s, %siB\n", in dump_io_stats()
1685 fprintf(ofp, " Reads Requeued: %s\t\t", size_cnv(x, ios->rrqueue, 0)); in dump_io_stats()
1686 fprintf(ofp, " Writes Requeued: %s\n", size_cnv(x, ios->wrqueue, 0)); in dump_io_stats()
1687 fprintf(ofp, " Reads Completed: %s, %siB\t", in dump_io_stats()
[all …]
Dblktrace.c246 FILE *ofp; member
1557 if (setvbuf(iop->ofp, iop->obuf, mode, size) < 0) { in set_vbuf()
1589 iop->ofp = my_fopen(iop->ofn, "w+"); in iop_open()
1590 if (iop->ofp == NULL) { in iop_open()
1599 fclose(iop->ofp); in iop_open()
1603 iop->ofd = fileno(iop->ofp); in iop_open()
1615 if (ftruncate(fileno(iop->ofp), mip->fs_size) < 0) { in close_iop()
1622 if (iop->ofp) in close_iop()
1623 fclose(iop->ofp); in close_iop()
1637 if (iop->ofp) in close_ios()
[all …]
Dblktrace.h66 extern FILE *ofp;
/external/python/cpython2/Lib/
Dbinhex.py115 def __init__(self, ofp): argument
116 self.ofp = ofp
136 self.ofp.write(self.hqxdata[first:last]+'\n')
141 self.ofp.write(self.hqxdata + ':\n')
148 self.ofp.close()
149 del self.ofp
154 def __init__(self, ofp): argument
155 self.ofp = ofp
163 self.ofp.write(rledata)
169 self.ofp.write(rledata)
[all …]
/external/python/cpython3/Lib/
Dbinhex.py98 def __init__(self, ofp): argument
99 self.ofp = ofp
120 self.ofp.write(self.hqxdata[first:last] + b'\r')
125 self.ofp.write(self.hqxdata + b':\r')
132 self.ofp.close()
133 del self.ofp
138 def __init__(self, ofp): argument
139 self.ofp = ofp
148 self.ofp.write(rledata)
155 self.ofp.write(rledata)
[all …]
/external/vboot_reference/utility/
Dbmpblk_font.c124 FILE *ofp; in main() local
156 ofp = fopen(outfile, "wb"); in main()
157 if (!ofp) in main()
162 if (1 != fwrite(&header, sizeof(header), 1, ofp)) { in main()
204 if (1 != fwrite(&entry, sizeof(entry), 1, ofp)) { in main()
208 if (1 != fwrite(imgdata, imgsize, 1, ofp)) { in main()
212 if (diff && 1 != fwrite("\0\0\0\0\0\0\0\0", diff, 1, ofp)) { in main()
221 fclose(ofp); in main()
225 fclose(ofp); in main()
Defidecompress.c1122 FILE *ofp = fopen(outfile, "wb"); in main() local
1123 if (!ofp) in main()
1132 if (1 != fwrite(obuf, osize, 1, ofp)) { in main()
1144 fclose(ofp); in main()
/external/python/cpython2/Mac/Modules/qd/
Dqdscan.py32 ofp = open("qdgen.py", "a")
33 ofp.write(ifp.read())
35 ofp.close()
37 ofp = open(TOOLBOXDIR + "QuickDraw.py", "a")
38 ofp.write(ifp.read())
40 ofp.close()
/external/libdivsufsort/examples/
Dbwt.c80 FILE *fp, *ofp; local
133 if(fopen_s(&ofp, ofname = argv[i], "wb") != 0) {
135 if((ofp = LFS_FOPEN(ofname = argv[i], "wb")) == NULL) {
149 ofp = stdout;
176 if(write_int(ofp, blocksize) != 4) {
195 if((write_int(ofp, pidx) != 4) ||
196 (fwrite(T, sizeof(sauchar_t), m, ofp) != m)) {
213 if(needclose & 2) { fclose(ofp); }
Dmksary.c70 FILE *fp, *ofp; local
111 if(fopen_s(&ofp, ofname = argv[2], "wb") != 0) {
113 if((ofp = LFS_FOPEN(ofname = argv[2], "wb")) == NULL) {
127 ofp = stdout;
181 if(fwrite(SA, sizeof(saidx_t), (size_t)n, ofp) != (size_t)n) {
186 if(needclose & 2) { fclose(ofp); }
Dunbwt.c82 FILE *fp, *ofp; local
125 if(fopen_s(&ofp, ofname = argv[2], "wb") != 0) {
127 if((ofp = LFS_FOPEN(ofname = argv[2], "wb")) == NULL) {
141 ofp = stdout;
183 if(fwrite(T, sizeof(sauchar_t), m, ofp) != m) {
200 if(needclose & 2) { fclose(ofp); }
/external/python/cpython2/Lib/plat-mac/
Dmacostools.py98 ofp = open(dst, 'wb')
101 ofp.write(d)
104 ofp.close()
107 ofp = openrf(dst, '*wb')
110 ofp.write(d)
113 ofp.close()
/external/blktrace/btreplay/
Dbtrecord.c89 FILE *ofp, *vfp; member
236 fseek(stream->ofp, 0, SEEK_SET); in write_file_hdr()
237 if (fwrite(hdr, sizeof(*hdr), 1, stream->ofp) != 1) { in write_file_hdr()
573 if (fwrite(hdrp, sizeof(struct io_bunch_hdr), 1, stream->ofp) != 1) { in bunch_output_hdr()
600 if (fwrite(p, sizeof(struct io_pkt), npkts, stream->ofp) != npkts) { in bunch_output_pkts()
689 stream->ofp = fopen(ofile_name, "w"); in stream_open()
690 if (!stream->ofp) { in stream_open()
735 fclose(stream->ofp); in stream_close()
/external/libcups/scheduler/
Ddirsvc.c1734 cups_file_t *ofp, /* Original file pointer */ in update_lpd() local
1741 if ((ofp = cupsFileOpen(LPDConfigFile + 9, "r")) == NULL) in update_lpd()
1752 cupsFileClose(ofp); in update_lpd()
1760 while (cupsFileGets(ofp, line, sizeof(line))) in update_lpd()
1773 cupsFileClose(ofp); in update_lpd()
1821 cups_file_t *ofp, /* Original file pointer */ in update_smb() local
1829 if ((ofp = cupsFileOpen(SMBConfigFile + 8, "r")) == NULL) in update_smb()
1840 cupsFileClose(ofp); in update_smb()
1850 while (cupsFileGets(ofp, line, sizeof(line))) in update_smb()
1863 cupsFileClose(ofp); in update_smb()
/external/libwebsockets/lib/misc/fts/
Dtrie.c1099 struct lws_fts_filepath *fp = t->filepath_list, *ofp; in lws_fts_serialize() local
1162 ofp = NULL; in lws_fts_serialize()
1176 fp->prev = ofp; in lws_fts_serialize()
1177 ofp = fp; in lws_fts_serialize()
1198 fp = ofp; in lws_fts_serialize()

12