Lines Matching +full:abs +full:- +full:flat
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
53 --argc; in main()
57 while ( *argv != 0 && **argv == '-' ) { in main()
78 printf("gprof: -d ignored\n"); in main()
148 if ((Kflag && kernel_getnfile(a_outname, &defaultEs) == -1) || in main()
149 (!Kflag && elf_getnfile(a_outname, &defaultEs) == -1)) in main()
202 * print the flat profile in main()
281 histcounter_size = abs(histcounter_type) / CHAR_BIT; in openpfile()
287 sampbytes = gmonhdr.ncnt - size; in openpfile()
311 parentp = nllookup( rawp -> raw_frompc ); in tally()
312 childp = nllookup( rawp -> raw_selfpc ); in tally()
316 && onlist( kfromlist , parentp -> name ) in tally()
317 && onlist( ktolist , childp -> name ) ) { in tally()
320 childp -> ncall += rawp -> raw_count; in tally()
324 parentp -> name , childp -> name , rawp -> raw_count ); in tally()
327 addarc( parentp , childp , rawp -> raw_count ); in tally()
357 for ( arcp = nlp -> children ; arcp ; arcp = arcp -> arc_childlist ) { in dumpsum()
358 arc.raw_frompc = arcp -> arc_parentp -> value; in dumpsum()
359 arc.raw_selfpc = arcp -> arc_childp -> value; in dumpsum()
360 arc.raw_count = arcp -> arc_count; in dumpsum()
380 if ( p1 -> value < p2 -> value ) { in valcmp()
383 if ( p1 -> value > p2 -> value ) { in valcmp()
405 case -8: in readsamples()
411 case -16: in readsamples()
417 case -32: in readsamples()
423 case -64: in readsamples()
434 errx(1, "unexpected EOF after reading %d/%d samples", --i , nsamples ); in readsamples()
450 * +-----------------------------------------------+
452 * | ->| |<- ->| |<- ->| |<- |
454 * +---------+ +---------+ +---------+
481 scale = highpc - lowpc; in asgnsamples()
498 for (j = j - 1; j < nname; j++) { in asgnsamples()
513 overlap = min(pch, svalue1) - max(pcl, svalue0); in asgnsamples()
517 printf("[asgnsamples] (0x%lx->0x%lx-0x%lx) %s gets %f ticks %lu overlap\n", in asgnsamples()
565 nlp -> svalue = nlp -> value / HISTORICAL_SCALE_2; in alignentries()
566 bucket_of_entry = (nlp->svalue - lowpc) / scale; in alignentries()
567 bucket_of_code = (nlp->svalue + OFFSET_OF_CODE / HISTORICAL_SCALE_2 - in alignentries()
573 nlp->svalue, in alignentries()
574 nlp->svalue + OFFSET_OF_CODE / HISTORICAL_SCALE_2); in alignentries()
577 nlp->svalue += OFFSET_OF_CODE / HISTORICAL_SCALE_2; in alignentries()