Lines Matching refs:gmonhdr
42 static struct gmonhdr gmonhdr; variable
249 struct gmonhdr tmp; in openpfile()
256 fread(&tmp, sizeof(struct gmonhdr), 1, pfile); in openpfile()
257 if ( s_highpc != 0 && ( tmp.lpc != gmonhdr.lpc || in openpfile()
258 tmp.hpc != gmonhdr.hpc || tmp.ncnt != gmonhdr.ncnt ) ) in openpfile()
260 gmonhdr = tmp; in openpfile()
261 if ( gmonhdr.version == GMONVERSION ) { in openpfile()
262 rate = gmonhdr.profrate; in openpfile()
263 size = sizeof(struct gmonhdr); in openpfile()
267 gmonhdr.profrate = rate = hertz(); in openpfile()
268 gmonhdr.version = GMONVERSION; in openpfile()
275 if ( gmonhdr.histcounter_type == 0 ) { in openpfile()
280 histcounter_type = gmonhdr.histcounter_type; in openpfile()
283 s_lowpc = (unsigned long) gmonhdr.lpc; in openpfile()
284 s_highpc = (unsigned long) gmonhdr.hpc; in openpfile()
285 lowpc = (unsigned long)gmonhdr.lpc / HISTORICAL_SCALE_2; in openpfile()
286 highpc = (unsigned long)gmonhdr.hpc / HISTORICAL_SCALE_2; in openpfile()
287 sampbytes = gmonhdr.ncnt - size; in openpfile()
292 gmonhdr.lpc , gmonhdr.hpc , gmonhdr.ncnt ); in openpfile()
346 if ( fwrite( &gmonhdr , sizeof gmonhdr , 1 , sfile ) != 1 ) in dumpsum()