Lines Matching defs:gmonhdr
55 static struct gmonhdr gmonhdr;
268 struct gmonhdr tmp;
275 fread(&tmp, sizeof(struct gmonhdr), 1, pfile);
276 if ( s_highpc != 0 && ( tmp.lpc != gmonhdr.lpc ||
277 tmp.hpc != gmonhdr.hpc || tmp.ncnt != gmonhdr.ncnt ) )
279 gmonhdr = tmp;
280 if ( gmonhdr.version == GMONVERSION ) {
281 rate = gmonhdr.profrate;
282 size = sizeof(struct gmonhdr);
286 gmonhdr.profrate = rate = hertz();
287 gmonhdr.version = GMONVERSION;
294 if ( gmonhdr.histcounter_type == 0 ) {
299 histcounter_type = gmonhdr.histcounter_type;
302 s_lowpc = (unsigned long) gmonhdr.lpc;
303 s_highpc = (unsigned long) gmonhdr.hpc;
304 lowpc = (unsigned long)gmonhdr.lpc / HISTORICAL_SCALE_2;
305 highpc = (unsigned long)gmonhdr.hpc / HISTORICAL_SCALE_2;
306 sampbytes = gmonhdr.ncnt - size;
311 gmonhdr.lpc , gmonhdr.hpc , gmonhdr.ncnt );
367 if ( fwrite( &gmonhdr , sizeof gmonhdr , 1 , sfile ) != 1 )