Home
last modified time | relevance | path

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

/toolchain/binutils/binutils-2.25/gprof/
Dgmon_io.c169 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
[all …]
Dsource.c102 FILE *ifp, *ofp; in annotate_source() local
171 ofp = stdout; in annotate_source()
214 ofp = fopen (fname, "w"); in annotate_source()
216 if (!ofp) in annotate_source()
225 if (ofp == stdout) in annotate_source()
230 fputc ('\n', ofp); in annotate_source()
235 fprintf (ofp, "\f\n"); in annotate_source()
237 fprintf (ofp, _("*** File %s:\n"), sf->name); in annotate_source()
251 fputs (annotation, ofp); in annotate_source()
257 fputc (buf[i], ofp); in annotate_source()
[all …]
Dbasic_blocks.c208 bb_write_blocks (FILE *ofp, const char *filename) in bb_write_blocks() argument
223 if (gmon_io_write_8 (ofp, GMON_TAG_BB_COUNT) in bb_write_blocks()
224 || gmon_io_write_32 (ofp, nblocks)) in bb_write_blocks()
235 if (gmon_io_write_vma (ofp, sym->bb_addr[i]) in bb_write_blocks()
236 || gmon_io_write_vma (ofp, (bfd_vma) sym->bb_calls[i])) in bb_write_blocks()
467 FILE *ofp; in print_annotated_source() local
537 ofp = annotate_source (sf, 16, annotate_with_count, sf); in print_annotated_source()
538 if (!ofp) in print_annotated_source()
543 fprintf (ofp, _("\n\nTop %d Lines:\n\n Line Count\n\n"), in print_annotated_source()
560 fprintf (ofp, "%9d %10lu\n", sym->line_num, sym->ncalls); in print_annotated_source()
[all …]
Dcall_graph.c107 cg_write_arcs (FILE *ofp, const char *filename) in cg_write_arcs() argument
116 if (gmon_io_write_8 (ofp, GMON_TAG_CG_ARC) in cg_write_arcs()
117 || gmon_io_write_vma (ofp, arc->parent->addr) in cg_write_arcs()
118 || gmon_io_write_vma (ofp, arc->child->addr) in cg_write_arcs()
119 || gmon_io_write_32 (ofp, arc->count)) in cg_write_arcs()
Dhist.c248 hist_write_hist (FILE * ofp, const char *filename) in hist_write_hist() argument
259 if (gmon_io_write_8 (ofp, GMON_TAG_TIME_HIST) in hist_write_hist()
260 || gmon_io_write_vma (ofp, record->lowpc) in hist_write_hist()
261 || gmon_io_write_vma (ofp, record->highpc) in hist_write_hist()
262 || gmon_io_write_32 (ofp, record->num_bins) in hist_write_hist()
263 || gmon_io_write_32 (ofp, hz) in hist_write_hist()
264 || gmon_io_write (ofp, hist_dimension, 15) in hist_write_hist()
265 || gmon_io_write (ofp, &hist_dimension_abbrev, 1)) in hist_write_hist()
275 if (fwrite (&count[0], sizeof (count), 1, ofp) != 1) in hist_write_hist()