From: John L. <le...@mo...> - 2004-06-30 19:46:51
|
On Wed, Jun 30, 2004 at 03:09:20PM -0400, Barry Rountree wrote: > opreport --symbols /opt/NPB2.3-serial/bin/ep.A session:ep.A_1.2_1 | > grep vranlc_ > > produces > > 981678 46.9540 345131 52.2227 713 49.2063 919330 52.4796 > ep.A vranlc_ > > > There isn't a vranlc subroutine in ./EP, but there is one in ./common. > However the following Check where the debug info says this symbol is from, via the -g option to opreport. > opannotate --verbose=all --source session:ep.A_1.2_1 > --search-dirs=/opt/NPB2.3-serial/common/ > /opt/NPB2.3-serial/bin/ep.A | grep vranlc > > produces (slightly edited) > > symbol vranlc_, value bd0 > symbol vranlc_, value bd0 > symbol vranlc_, value bd0 > symbol vranlc_, value bd0 > : call vranlc(0, dum(1), dum(2), dum(3)) > : call vranlc(0, t1, a, x) > 1 4.8e-05 0 0 0 0 2 1.1e-04 : call vranlc(2 * nk, t1, a, x) > > I get the calls to the subroutine, but not the subroutine itself. Everything > else seems to be working fine. > > 1) Have I gotten the command-line option wrong? Yes. This option doesn't do what you think it does. See http://oprofile.sourceforge.net/doc/opannotate-details.html The option similar to what you want is --base-dirs. But this can only restrict the output, so you should be seeing it anyway. Can you try using the --output-dir option, with no --base-dirs / --search-dirs option at all? > 2) Is there a simple way to check if the object files in the ./common > directory got compiled with profiling and debugging info? objdump -h foo.o | grep debug should list some stuff regards john |