Home | History | Annotate | Download | only in gprof

Lines Matching defs:ifp

103 gmon_io_read_32 (FILE *ifp, unsigned int *valp)
107 if (fread (buf, 1, 4, ifp) != 4)
115 gmon_io_read_64 (FILE *ifp, BFD_HOST_U_64_BIT *valp)
119 if (fread (buf, 1, 8, ifp) != 8)
127 gmon_io_read_vma (FILE *ifp, bfd_vma *valp)
137 if (gmon_io_read_32 (ifp, &val32))
147 if (gmon_io_read_64 (ifp, &val64))
162 gmon_io_read (FILE *ifp, char *buf, size_t n)
164 if (fread (buf, 1, n, ifp) != n)
234 gmon_read_raw_arc (FILE *ifp, bfd_vma *fpc, bfd_vma *spc, unsigned long *cnt)
241 if (gmon_io_read_vma (ifp, fpc)
242 || gmon_io_read_vma (ifp, spc))
248 if (gmon_io_read_32 (ifp, &cnt32))
255 if (gmon_io_read_64 (ifp, &cnt64))
295 FILE *ifp;
303 ifp = stdin;
308 ifp = fopen (filename, FOPEN_RB);
310 if (!ifp)
317 if (fread (&ghdr, sizeof (struct gmon_hdr), 1, ifp) != 1)
346 while (fread (&tag, sizeof (tag), 1, ifp) == 1)
353 hist_read_rec (ifp, filename);
359 cg_read_rec (ifp, filename);
365 bb_read_rec (ifp, filename);
402 if (fseek (ifp, 0, SEEK_SET) < 0)
410 if (gmon_io_read_vma (ifp, &tmp.low_pc)
411 || gmon_io_read_vma (ifp, &tmp.high_pc)
412 || gmon_io_read_32 (ifp, &tmp.ncnt))
421 if (gmon_io_read_32 (ifp, &version))
429 if (gmon_io_read_32 (ifp, &profrate))
476 if (fseek (ifp, header_size, SEEK_SET) < 0)
528 if (fread (raw_bin_count, sizeof (raw_bin_count), 1, ifp) != 1)
542 while (gmon_read_raw_arc (ifp, &from_pc, &self_pc, &count) == 0)
574 if (ifp != stdin)
575 fclose (ifp);