[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gprof 2.14 glitches w/ powerpc elf binaries
From: |
Njuguna Njoroge |
Subject: |
gprof 2.14 glitches w/ powerpc elf binaries |
Date: |
Mon, 02 Aug 2004 18:16:00 -0700 |
Hello,
I observed that when gprof is executed w/ binaries targeted for the
PowerPC (like the 405D in our case), gprof inserts functions in the
histogram and call graph tables that were never executed (i.e. their
addresses were never referenced). I am generating the gmon.out files
from a trace output file generated by RISCWatch Debugger. In the
gmon.out files my script generates, each address has its own histogram
bin, so I believe that should rule out functions aliasing to the same
bins. Fortunately, these "phantom" functions are reported to use
typically < 1% of the total runtime, so they do not significantly skew
the results. However, they do clutter the profile when the program has
many sub-routines. Below is an example of a program we profiled. Note
that functions like "memcpy" or "Letext" were never called, yet it
appears on the profile.
Flat profile:
Each sample counts as 1 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
21.92 542868.31 542868.31 13742 39.50 39.50 memset
17.83 984301.77 441433.46 687 642.55 803.65 XGPprocess_tx
14.76 1349834.96 365533.20 687 532.07 1616.06 XGPemac_SgSend
11.74 1640602.95 290767.99 688 422.63 490.98 XGPqueue_insert
7.62 1829297.55 188694.60 27640 6.83 6.83
XCache_FlushDCacheLine
5.22 1958459.10 129161.55 main
3.71 2050218.04 91758.94 688 133.37 1149.21
XIntc_DeviceInterruptHandler
3.38 2133800.13 83582.09 <locore>
2.64 2199067.93 65267.80 687 95.00 921.67 XGPIntrHandlerDma
2.03 2249366.09 50298.16 689 73.00 73.00 XGPemac_SgStart
1.28 2280969.95 31603.86 687 46.00 46.00 XGPGetTxBD
1.21 2310947.73 29977.79
XCache_DisableDCache
1.20 2340544.00 29596.27 1376 21.51 21.51 XIo_DcrIn
0.86 2361857.42 21313.42 1375 15.50 15.50 XTime_GetTime
0.68 2378714.14 16856.72 688 24.50 24.50 TxIntHandler
0.60 2393590.78 14876.64 137 108.59 115.42 XGPprocess_rx
0.60 2408394.42 14803.64 688 21.52 21.52 XIo_DcrOut
0.57 2422493.02 14098.61 688 20.49 1169.70
XIntc_InterruptHandler
0.28 2429364.32 6871.30 memcpy
0.27 2435978.60 6614.28 689 9.60 9.60 XGPqueue_pop
0.04 2437010.65 1032.04 SetupInterrupts
0.04 2438042.69 1032.04
XIntc_VoidInterruptHandler
0.04 2439073.24 1030.54 XGPSetDmaChannel
0.03 2439760.76 687.53 XTime_SetTime
0.01 2440105.28 344.51
XGPemac_SetSgErrorHandler
0.01 2440449.29 344.01
LookupConfigByBaseAddress
0.01 2440793.31 344.01
XIntc_LowLevelInterruptHandler
0.00 2440793.31 0.00 2062 0.00 0.00 Letext
- gprof 2.14 glitches w/ powerpc elf binaries,
Njuguna Njoroge <=
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Nick Clifton, 2004/08/18
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Njuguna Njoroge, 2004/08/23
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Njuguna Njoroge, 2004/08/23
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Nick Clifton, 2004/08/24
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Njuguna Njoroge, 2004/08/26
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Njuguna Njoroge, 2004/08/26
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Nick Clifton, 2004/08/27
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Njuguna Njoroge, 2004/08/30
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Nick Clifton, 2004/08/31
- Re: gprof 2.14 glitches w/ powerpc elf binaries, Njuguna Njoroge, 2004/08/31