Home | History | Annotate | Download | only in gprof

Lines Matching full:record

82 /* Reads just the header part of histogram record into
83 *RECORD from IFP. FILENAME is the name of IFP and
91 read_histogram_header (histogram *record,
100 if (gmon_io_read_vma (ifp, &record->lowpc)
101 || gmon_io_read_vma (ifp, &record->highpc)
102 || gmon_io_read_32 (ifp, &record->num_bins)
113 n_hist_scale = (double)((record->highpc - record->lowpc) / sizeof (UNIT))
114 / record->num_bins;
174 histogram *record, *existing_record;
177 /* 1. Read the header and see if there's existing record for the
184 record = existing_record;
188 /* If this record overlaps, but does not completely match an existing
189 record, it's an error. */
201 /* This is new record. Add it to global array and allocate space for
207 record = &histograms[num_histograms];
210 record->sample = (int *) xmalloc (record->num_bins
211 * sizeof (record->sample[0]));
212 memset (record->sample, 0, record->num_bins * sizeof (record->sample[0]));
215 /* 2. We have either a new record (with zeroed histogram data), or an existing
216 record with some data in the histogram already. Read new data into the
217 record, adding hit counts. */
221 (unsigned long) record->lowpc, (unsigned long) record->highpc,
222 record->num_bins));
224 for (i = 0; i < record->num_bins; ++i)
231 whoami, filename, i, record->num_bins);
234 record->sample[i] += bfd_get_16 (core_bfd, (bfd_byte *) & count[0]);
237 (unsigned long) (record->lowpc
238 + i * (record->highpc - record->lowpc)
239 / record->num_bins),
240 record->sample[i]));
256 histogram *record = &histograms[r];
261 || gmon_io_write_vma (ofp, record->lowpc)
262 || gmon_io_write_vma (ofp, record->highpc)
263 || gmon_io_write_32 (ofp, record->num_bins)
272 for (i = 0; i < record->num_bins; ++i)
274 bfd_put_16 (core_bfd, (bfd_vma) record->sample[i], (bfd_byte *) &count[0]);
728 /* Find and return exising histogram record having the same lowpc and
743 /* Given a PC, return histogram record which address range include this PC.
744 Return NULL if there's no such record. */