Lines Matching defs:gmonhdr
54 static struct gmonhdr gmonhdr;
262 struct gmonhdr tmp;
269 fread(&tmp, sizeof(struct gmonhdr), 1, pfile);
270 if ( s_highpc != 0 && ( tmp.lpc != gmonhdr.lpc ||
271 tmp.hpc != gmonhdr.hpc || tmp.ncnt != gmonhdr.ncnt ) )
273 gmonhdr = tmp;
274 if ( gmonhdr.version == GMONVERSION ) {
275 rate = gmonhdr.profrate;
276 size = sizeof(struct gmonhdr);
280 gmonhdr.profrate = rate = hertz();
281 gmonhdr.version = GMONVERSION;
288 if ( gmonhdr.histcounter_type == 0 ) {
293 histcounter_type = gmonhdr.histcounter_type;
296 s_lowpc = (unsigned long) gmonhdr.lpc;
297 s_highpc = (unsigned long) gmonhdr.hpc;
298 lowpc = (unsigned long)gmonhdr.lpc / HISTORICAL_SCALE_2;
299 highpc = (unsigned long)gmonhdr.hpc / HISTORICAL_SCALE_2;
300 sampbytes = gmonhdr.ncnt - size;
305 gmonhdr.lpc , gmonhdr.hpc , gmonhdr.ncnt );
359 if ( fwrite( &gmonhdr , sizeof gmonhdr , 1 , sfile ) != 1 )