• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.bin/gprof/

Lines Matching refs:arcp

59     arctype		*arcp;
67 arcp = arclookup( parentp , childp );
68 if ( arcp != 0 ) {
75 arcp -> arc_count , count );
78 arcp -> arc_count += count;
81 arcp = (arctype *)calloc( 1 , sizeof *arcp );
82 if (arcp == NULL)
84 arcp -> arc_parentp = parentp;
85 arcp -> arc_childp = childp;
86 arcp -> arc_count = count;
90 arcp -> arc_childlist = parentp -> children;
91 parentp -> children = arcp;
95 arcp -> arc_parentlist = childp -> parents;
96 childp -> parents = arcp;
122 arctype *arcp;
134 arcp = arclookup( parentp , parentp );
135 if ( arcp != 0 ) {
136 parentp -> ncall -= arcp -> arc_count;
137 parentp -> selfcalls = arcp -> arc_count;
270 arctype *arcp;
281 for ( arcp = parentp -> children ; arcp ; arcp = arcp -> arc_childlist ) {
282 childp = arcp -> arc_childp;
283 if ( arcp -> arc_flags & DEADARC ) {
286 if ( arcp -> arc_count == 0 ) {
315 arcp -> arc_time = childp -> time
316 * ( ( (double) arcp -> arc_count ) /
318 arcp -> arc_childtime = childp -> childtime
319 * ( ( (double) arcp -> arc_count ) /
321 share = arcp -> arc_time + arcp -> arc_childtime;
331 arcp -> arc_time *= parentp -> propfraction;
332 arcp -> arc_childtime *= parentp -> propfraction;
346 arcp -> arc_count , childp -> npropcall );
362 arctype *arcp;
431 for ( arcp=memberp->parents ; arcp ; arcp=arcp->arc_parentlist ) {
432 if ( arcp -> arc_parentp == memberp ) {
435 if ( arcp -> arc_parentp -> cycleno == cycle ) {
436 cyclenlp -> selfcalls += arcp -> arc_count;
438 cyclenlp -> npropcall += arcp -> arc_count;
455 arctype *arcp;
474 for ( arcp = nlp -> parents; arcp; arcp = arcp -> arc_parentlist ) {
476 if ( arcp -> arc_parentp -> cycleno != cycleno )
527 arctype *arcp;
530 for ( arcp = node -> children ; arcp ; arcp = arcp -> arc_childlist ) {
534 if ( arcp -> arc_childp -> cycleno != node -> cycleno
535 || ( arcp -> arc_childp -> flags & VISITED )
536 || ( arcp -> arc_flags & DEADARC ) )
541 *stkp = arcp;
542 if ( arcp -> arc_childp -> flags & CYCLEHEAD ) {
547 arcp -> arc_childp -> flags |= VISITED;
548 ret = descend( arcp -> arc_childp , stkstart , stkp + 1 );
549 arcp -> arc_childp -> flags &= ~VISITED;
564 arctype *arcp;
605 arcp = *arcpp = *stkp++;
608 arcp -> arc_cyclecnt++;
609 if ( ( arcp -> arc_flags & ONLIST ) == 0 ) {
610 arcp -> arc_flags |= ONLIST;
611 arcp -> arc_next = archead;
612 archead = arcp;
637 arctype *arcp;
652 for ( endlist = &archead , arcp = archead ; arcp ; ) {
653 if ( arcp -> arc_cyclecnt == 0 ) {
654 arcp -> arc_flags &= ~ONLIST;
655 *endlist = arcp -> arc_next;
656 arcp -> arc_next = 0;
657 arcp = *endlist;
660 if ( arcp -> arc_childp -> flags & HASCYCLEXIT ) {
661 if ( arcp -> arc_cyclecnt > maxexitcnt ||
662 ( arcp -> arc_cyclecnt == maxexitcnt &&
663 arcp -> arc_cyclecnt < maxexitarcp -> arc_count ) ) {
664 maxexitcnt = arcp -> arc_cyclecnt;
665 maxexitarcp = arcp;
667 } else if ( arcp -> arc_childp -> parentcnt > 1 ) {
668 if ( arcp -> arc_cyclecnt > maxwithparentcnt ||
669 ( arcp -> arc_cyclecnt == maxwithparentcnt &&
670 arcp -> arc_cyclecnt < maxwithparentarcp -> arc_count ) ) {
671 maxwithparentcnt = arcp -> arc_cyclecnt;
672 maxwithparentarcp = arcp;
675 if ( arcp -> arc_cyclecnt > maxnoparentcnt ||
676 ( arcp -> arc_cyclecnt == maxnoparentcnt &&
677 arcp -> arc_cyclecnt < maxnoparentarcp -> arc_count ) ) {
678 maxnoparentcnt = arcp -> arc_cyclecnt;
679 maxnoparentarcp = arcp;
682 endlist = &arcp -> arc_next;
683 arcp = arcp -> arc_next;
890 arctype *arcp;
901 for (arcp = childp -> parents ; arcp ; arcp = arcp -> arc_parentlist) {
902 parentp = arcp -> arc_parentp;
912 if ( arcp -> arc_flags & DEADARC ) {
917 * ( ( (double) arcp -> arc_count )
929 for (arcp = memp->parents ; arcp ; arcp = arcp->arc_parentlist) {
930 if ( arcp -> arc_parentp -> cyclehead == headp ) {
933 parentp = arcp -> arc_parentp;
940 if ( arcp -> arc_flags & DEADARC ) {
945 * ( ( (double) arcp -> arc_count )