diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
commit | a14d555c873398b14776ca4f2c33f9c69617afb9 (patch) | |
tree | 350f6f98843363254f9afe467ae0c92d5a9d7f43 /usr.bin/gprof | |
parent | f3a2b348daf9fa6063c38d2d69563f732a2f80e7 (diff) | |
download | FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.zip FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r-- | usr.bin/gprof/arcs.c | 10 | ||||
-rw-r--r-- | usr.bin/gprof/dfn.c | 4 | ||||
-rw-r--r-- | usr.bin/gprof/gprof.c | 12 | ||||
-rw-r--r-- | usr.bin/gprof/gprof.h | 2 | ||||
-rw-r--r-- | usr.bin/gprof/lookup.c | 2 | ||||
-rw-r--r-- | usr.bin/gprof/printgprof.c | 8 | ||||
-rw-r--r-- | usr.bin/gprof/tahoe.c | 8 | ||||
-rw-r--r-- | usr.bin/gprof/tahoe.h | 2 | ||||
-rw-r--r-- | usr.bin/gprof/vax.c | 8 | ||||
-rw-r--r-- | usr.bin/gprof/vax.h | 2 |
10 files changed, 29 insertions, 29 deletions
diff --git a/usr.bin/gprof/arcs.c b/usr.bin/gprof/arcs.c index e5bbc24..2c22469 100644 --- a/usr.bin/gprof/arcs.c +++ b/usr.bin/gprof/arcs.c @@ -224,7 +224,7 @@ doarcs() */ doflags(); /* - * starting from the topological bottom, + * starting from the topological bottom, * propogate children times up to parents. */ dotime(); @@ -416,7 +416,7 @@ cyclelink() /* * link members to cycle header */ - for ( memberp = nlp ; memberp ; memberp = memberp -> cnext ) { + for ( memberp = nlp ; memberp ; memberp = memberp -> cnext ) { memberp -> cycleno = cycle; memberp -> cyclehead = cyclenlp; } @@ -847,7 +847,7 @@ doflags() } } else { /* - * it has parents to pass time to, + * it has parents to pass time to, * but maybe someone wants to shut it up * by puttting it on -E list. (but favor -F over -E) */ @@ -874,7 +874,7 @@ doflags() /* * check if any parent of this child * (or outside parents of this cycle) - * have their print flags on and set the + * have their print flags on and set the * print flag of the child (cycle) appropriately. * similarly, deal with propagation fractions from parents. */ @@ -915,7 +915,7 @@ inheritflags( childp ) } } else { /* - * its a member of a cycle, look at all parents from + * its a member of a cycle, look at all parents from * outside the cycle */ headp -> printflag = FALSE; diff --git a/usr.bin/gprof/dfn.c b/usr.bin/gprof/dfn.c index 987929f..169a47f 100644 --- a/usr.bin/gprof/dfn.c +++ b/usr.bin/gprof/dfn.c @@ -134,7 +134,7 @@ bool dfn_numbered( childp ) nltype *childp; { - + return ( childp -> toporder != DFN_NAN && childp -> toporder != DFN_BUSY ); } @@ -212,7 +212,7 @@ dfn_findcycle( childp ) * if what we think is the top of the cycle * has a cyclehead field, then it's not really the * head of the cycle, which is really what we want - */ + */ if ( cycleheadp -> cyclehead != cycleheadp ) { cycleheadp = cycleheadp -> cyclehead; # ifdef DEBUG diff --git a/usr.bin/gprof/gprof.c b/usr.bin/gprof/gprof.c index 6873422..0dbb187 100644 --- a/usr.bin/gprof/gprof.c +++ b/usr.bin/gprof/gprof.c @@ -205,7 +205,7 @@ main(argc, argv) * print the dynamic profile */ if(!lflag) { - printgprof( timesortnlp ); + printgprof( timesortnlp ); } /* * print the flat profile @@ -216,7 +216,7 @@ main(argc, argv) /* * print the index */ - printindex(); + printindex(); done(); } @@ -552,11 +552,11 @@ readsamples(pfile) { register i; UNIT sample; - + if (samples == 0) { samples = (UNIT *) calloc(sampbytes, sizeof (UNIT)); if (samples == 0) { - fprintf( stderr , "%s: No room for %d sample pc's\n", + fprintf( stderr , "%s: No room for %d sample pc's\n", whoami , sampbytes / sizeof (UNIT)); done(); } @@ -639,7 +639,7 @@ asgnsamples() svalue0 = nl[j].svalue; svalue1 = nl[j+1].svalue; /* - * if high end of tick is below entry address, + * if high end of tick is below entry address, * go for next tick. */ if (pch < svalue0) @@ -656,7 +656,7 @@ asgnsamples() if (debug & SAMPLEDEBUG) { printf("[asgnsamples] (0x%x->0x%x-0x%x) %s gets %f ticks %d overlap\n", nl[j].value/sizeof(UNIT), svalue0, svalue1, - nl[j].name, + nl[j].name, overlap * time / scale, overlap); } # endif DEBUG diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h index ef1cc19..31bada9 100644 --- a/usr.bin/gprof/gprof.h +++ b/usr.bin/gprof/gprof.h @@ -179,7 +179,7 @@ int cyclecnt; /* the number of cycles found */ #define DFN_BUSY -1 #define DFN_NAN 0 - /* + /* * namelist entries for cycle headers. * the number of discovered cycles. */ diff --git a/usr.bin/gprof/lookup.c b/usr.bin/gprof/lookup.c index d63c13bf..c276346 100644 --- a/usr.bin/gprof/lookup.c +++ b/usr.bin/gprof/lookup.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)lookup.c 8.1 (Berkeley) 6/6/93"; /* * look up an address in a sorted-by-address namelist - * this deals with misses by mapping them to the next lower + * this deals with misses by mapping them to the next lower * entry point. */ nltype * diff --git a/usr.bin/gprof/printgprof.c b/usr.bin/gprof/printgprof.c index 884c368..716fd8b 100644 --- a/usr.bin/gprof/printgprof.c +++ b/usr.bin/gprof/printgprof.c @@ -90,7 +90,7 @@ timecmp( npp1 , npp2 ) */ flatprofheader() { - + if ( bflag ) { printblurb( _PATH_FLAT_BLURB ); } @@ -260,7 +260,7 @@ totalcmp( npp1 , npp2 ) return 1; if ( diff > 0.0 ) return -1; - if ( np1 -> name == 0 && np1 -> cycleno != 0 ) + if ( np1 -> name == 0 && np1 -> cycleno != 0 ) return -1; if ( np2 -> name == 0 && np2 -> cycleno != 0 ) return 1; @@ -274,7 +274,7 @@ totalcmp( npp1 , npp2 ) return 1; if ( np1 -> ncall > np2 -> ncall ) return -1; - if ( np1 -> ncall < np2 -> ncall ) + if ( np1 -> ncall < np2 -> ncall ) return 1; return strcmp( np1 -> name , np2 -> name ); } @@ -497,7 +497,7 @@ printmembers( cyclep ) sortmembers( cyclep ); for ( memberp = cyclep -> cnext ; memberp ; memberp = memberp -> cnext ) { - printf( "%6.6s %5.5s %7.2f %11.2f %7d" , + printf( "%6.6s %5.5s %7.2f %11.2f %7d" , "" , "" , memberp -> propself / hz , memberp -> propchild / hz , memberp -> npropcall ); if ( memberp -> selfcalls != 0 ) { diff --git a/usr.bin/gprof/tahoe.c b/usr.bin/gprof/tahoe.c index ac027f9..839ee29 100644 --- a/usr.bin/gprof/tahoe.c +++ b/usr.bin/gprof/tahoe.c @@ -66,7 +66,7 @@ operandmode( modep ) unsigned char *modep; { long usesreg = ((long)*modep) & 0xf; - + switch ( ((long)*modep) >> 4 ) { case 0: case 1: @@ -105,7 +105,7 @@ char * operandname( mode ) operandenum mode; { - + switch ( mode ) { case literal: return "literal"; @@ -157,7 +157,7 @@ long operandlength( modep ) unsigned char *modep; { - + switch ( operandmode( modep ) ) { case literal: case reg: @@ -300,7 +300,7 @@ findcall( parentp , p_lowpc , p_highpc ) case longrel: /* * regular pc relative addressing - * check that this is the address of + * check that this is the address of * a function. */ destpc = reladdr( instructp+length ) diff --git a/usr.bin/gprof/tahoe.h b/usr.bin/gprof/tahoe.h index 7fd0d04..d82359a 100644 --- a/usr.bin/gprof/tahoe.h +++ b/usr.bin/gprof/tahoe.h @@ -51,7 +51,7 @@ #define PC 0xf enum opermodes { - literal, indexed, reg, regdef, autodec, autoinc, autoincdef, + literal, indexed, reg, regdef, autodec, autoinc, autoincdef, bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef, immediate, absolute, byterel, bytereldef, wordrel, wordreldef, longrel, longreldef diff --git a/usr.bin/gprof/vax.c b/usr.bin/gprof/vax.c index ec3232a..03e3495 100644 --- a/usr.bin/gprof/vax.c +++ b/usr.bin/gprof/vax.c @@ -66,7 +66,7 @@ operandmode( modep ) struct modebyte *modep; { long usesreg = modep -> regfield; - + switch ( modep -> modefield ) { case 0: case 1: @@ -105,7 +105,7 @@ char * operandname( mode ) operandenum mode; { - + switch ( mode ) { case literal: return "literal"; @@ -157,7 +157,7 @@ long operandlength( modep ) struct modebyte *modep; { - + switch ( operandmode( modep ) ) { case literal: case reg: @@ -297,7 +297,7 @@ findcall( parentp , p_lowpc , p_highpc ) case longrel: /* * regular pc relative addressing - * check that this is the address of + * check that this is the address of * a function. */ destpc = reladdr( (struct modebyte *) (instructp+length) ) diff --git a/usr.bin/gprof/vax.h b/usr.bin/gprof/vax.h index b5fbf35..33c5822 100644 --- a/usr.bin/gprof/vax.h +++ b/usr.bin/gprof/vax.h @@ -51,7 +51,7 @@ #define PC 0xf enum opermodes { - literal, indexed, reg, regdef, autodec, autoinc, autoincdef, + literal, indexed, reg, regdef, autodec, autoinc, autoincdef, bytedisp, bytedispdef, worddisp, worddispdef, longdisp, longdispdef, immediate, absolute, byterel, bytereldef, wordrel, wordreldef, longrel, longreldef |