Lines Matching refs:record

83 /* Reads just the header part of histogram record into
92 read_histogram_header (histogram *record,
101 if (gmon_io_read_vma (ifp, &record->lowpc)
102 || gmon_io_read_vma (ifp, &record->highpc)
103 || gmon_io_read_32 (ifp, &record->num_bins)
114 n_hist_scale = (double)((record->highpc - record->lowpc) / sizeof (UNIT))
115 / record->num_bins;
175 histogram *record, *existing_record;
178 /* 1. Read the header and see if there's existing record for the
185 record = existing_record;
189 /* If this record overlaps, but does not completely match an existing
190 record, it's an error. */
202 /* This is new record. Add it to global array and allocate space for
208 record = &histograms[num_histograms];
211 record->sample = (int *) xmalloc (record->num_bins
212 * sizeof (record->sample[0]));
213 memset (record->sample, 0, record->num_bins * sizeof (record->sample[0]));
216 /* 2. We have either a new record (with zeroed histogram data), or an existing
217 record with some data in the histogram already. Read new data into the
218 record, adding hit counts. */
222 (unsigned long) record->lowpc, (unsigned long) record->highpc,
223 record->num_bins));
225 for (i = 0; i < record->num_bins; ++i)
232 whoami, filename, i, record->num_bins);
235 record->sample[i] += bfd_get_16 (core_bfd, (bfd_byte *) & count[0]);
238 (unsigned long) (record->lowpc
239 + i * (record->highpc - record->lowpc)
240 / record->num_bins),
241 record->sample[i]));
257 histogram *record = &histograms[r];
262 || gmon_io_write_vma (ofp, record->lowpc)
263 || gmon_io_write_vma (ofp, record->highpc)
264 || gmon_io_write_32 (ofp, record->num_bins)
273 for (i = 0; i < record->num_bins; ++i)
275 bfd_put_16 (core_bfd, (bfd_vma) record->sample[i], (bfd_byte *) &count[0]);
726 /* Find and return exising histogram record having the same lowpc and
741 /* Given a PC, return histogram record which address range include this PC.
742 Return NULL if there's no such record. */