Lines Matching refs:ofp
170 gmon_io_write_32 (FILE *ofp, unsigned int val)
175 if (fwrite (buf, 1, 4, ofp) != 4)
182 gmon_io_write_64 (FILE *ofp, BFD_HOST_U_64_BIT val)
187 if (fwrite (buf, 1, 8, ofp) != 8)
194 gmon_io_write_vma (FILE *ofp, bfd_vma val)
200 if (gmon_io_write_32 (ofp, (unsigned int) val))
206 if (gmon_io_write_64 (ofp, (BFD_HOST_U_64_BIT) val))
215 gmon_io_write_8 (FILE *ofp, unsigned int val)
220 if (fwrite (buf, 1, 1, ofp) != 1)
226 gmon_io_write (FILE *ofp, char *buf, size_t n)
228 if (fwrite (buf, 1, n, ofp) != n)
268 gmon_write_raw_arc (FILE *ofp, bfd_vma fpc, bfd_vma spc, unsigned long cnt)
271 if (gmon_io_write_vma (ofp, fpc)
272 || gmon_io_write_vma (ofp, spc))
278 if (gmon_io_write_32 (ofp, (unsigned int) cnt))
284 if (gmon_io_write_64 (ofp, (BFD_HOST_U_64_BIT) cnt))
598 FILE *ofp;
601 ofp = fopen (filename, FOPEN_WB);
602 if (!ofp)
615 if (fwrite (&ghdr, sizeof (ghdr), 1, ofp) != 1)
623 hist_write_hist (ofp, filename);
627 cg_write_arcs (ofp, filename);
631 bb_write_blocks (ofp, filename);
685 if (gmon_io_write_vma (ofp, histograms->lowpc)
686 || gmon_io_write_vma (ofp, histograms->highpc)
687 || gmon_io_write_32 (ofp, histograms->num_bins
698 if (gmon_io_write_32 (ofp, GMONVERSION)
699 || gmon_io_write_32 (ofp, (unsigned int) hz))
709 && fwrite (pad, 1, padsize, ofp) != padsize)
720 if (fwrite (&raw_bin_count[0], sizeof (raw_bin_count), 1, ofp) != 1)
732 if (gmon_write_raw_arc (ofp, arc->parent->addr,
745 fclose (ofp);