Lines Matching refs:ofp
169 gmon_io_write_32 (FILE *ofp, unsigned int val) in gmon_io_write_32() argument
174 if (fwrite (buf, 1, 4, ofp) != 4) in gmon_io_write_32()
181 gmon_io_write_64 (FILE *ofp, BFD_HOST_U_64_BIT val) in gmon_io_write_64() argument
186 if (fwrite (buf, 1, 8, ofp) != 8) in gmon_io_write_64()
193 gmon_io_write_vma (FILE *ofp, bfd_vma val) in gmon_io_write_vma() argument
199 if (gmon_io_write_32 (ofp, (unsigned int) val)) in gmon_io_write_vma()
205 if (gmon_io_write_64 (ofp, (BFD_HOST_U_64_BIT) val)) in gmon_io_write_vma()
214 gmon_io_write_8 (FILE *ofp, unsigned int val) in gmon_io_write_8() argument
219 if (fwrite (buf, 1, 1, ofp) != 1) in gmon_io_write_8()
225 gmon_io_write (FILE *ofp, char *buf, size_t n) in gmon_io_write() argument
227 if (fwrite (buf, 1, n, ofp) != n) in gmon_io_write()
267 gmon_write_raw_arc (FILE *ofp, bfd_vma fpc, bfd_vma spc, unsigned long cnt) in gmon_write_raw_arc() argument
270 if (gmon_io_write_vma (ofp, fpc) in gmon_write_raw_arc()
271 || gmon_io_write_vma (ofp, spc)) in gmon_write_raw_arc()
277 if (gmon_io_write_32 (ofp, (unsigned int) cnt)) in gmon_write_raw_arc()
283 if (gmon_io_write_64 (ofp, (BFD_HOST_U_64_BIT) cnt)) in gmon_write_raw_arc()
597 FILE *ofp; in gmon_out_write() local
600 ofp = fopen (filename, FOPEN_WB); in gmon_out_write()
601 if (!ofp) in gmon_out_write()
614 if (fwrite (&ghdr, sizeof (ghdr), 1, ofp) != 1) in gmon_out_write()
622 hist_write_hist (ofp, filename); in gmon_out_write()
626 cg_write_arcs (ofp, filename); in gmon_out_write()
630 bb_write_blocks (ofp, filename); in gmon_out_write()
684 if (gmon_io_write_vma (ofp, histograms->lowpc) in gmon_out_write()
685 || gmon_io_write_vma (ofp, histograms->highpc) in gmon_out_write()
686 || gmon_io_write_32 (ofp, histograms->num_bins in gmon_out_write()
697 if (gmon_io_write_32 (ofp, GMONVERSION) in gmon_out_write()
698 || gmon_io_write_32 (ofp, (unsigned int) hz)) in gmon_out_write()
708 && fwrite (pad, 1, padsize, ofp) != padsize) in gmon_out_write()
719 if (fwrite (&raw_bin_count[0], sizeof (raw_bin_count), 1, ofp) != 1) in gmon_out_write()
731 if (gmon_write_raw_arc (ofp, arc->parent->addr, in gmon_out_write()
744 fclose (ofp); in gmon_out_write()