Maynard Johnson, Thank you for your reply. Your suggestions were very useful. We were wondering when we run : opcontrol --separate=library . We tried running opcontrol --separate=library before opcontrol --start and after opcontrol --start. In either case, we are obtaining the warning: the last modified time of the binary file does not match that of the sample file for /home/frankc/DQTTest5/MatchUpLib/lirh5g_deb/libmdMatchup.so Either this is the wrong binary or the binary has been modified since the sample file was created. So we decided to remove the /var/lib/oprofile/samples subdirectory and use opcontrol --reset. Now , we are no longer obtaining any warning messages.
My supervisor asked me if oprofile could annotate source code. So I tried the command: opannotate --source --output-dir=/home/frankc/src/annotated ./Mary15.exe. When I looked in /home/frankc/src/annotated/..... I observed that certain cpp and hpp files were annotated with profiling measurements. I am just a newbie to oprofile. I was wondering where I could find information about oprofile source annotation. Thank you.
> Date: Tue, 26 Apr 2011 14:16:59 -0500 > From: firstname.lastname@example.org > To: email@example.com > CC: firstname.lastname@example.org > Subject: Re: oprofile on Centos Linux 5.5 > > Frank Chang wrote: > > > > Hi, I installed oprofile 0.9.4 on Centos Linux 5.5 this past Saturday. Since then I have been trying to learn how to use oprofile 0.9.4 on Centos Linux 5.5. If I follow the following steps running as root, > > > > opcontrol --shutdown > > opcontrol --callgraph=7 > > opcontrol --image=/home/frankc/DQTTest5/MatchUpTest/lirh5g_deb/Mary48.exe > > opcontrol --start > > > > /home/frankc/DQTTest5/MatchUpTest/lirh5g_deb/Mary48.exe --run > > > > > > opcontrol --dump > > opreport -c > profile_info.txt > > or > > opreport -l /home/frankc/DQTTest5/MatchUpLib/lirh5g_deb/libmdMatchup.so > > > > I obtain the following warning: > > warning: the last modified time of the binary file does not match that of the sample file for /home/frankc/DQTTest5/MatchUpLib/lirh5g_deb/libmdMatchup.so > > Either this is the wrong binary or the binary has been modified since the sample file was created. > > warning: the last modified time of the binary file does not match that of the sample file for /home/frankc/DQTTest5/MatchUpTest/lirh5g_deb/MatchUpAccurate.exe > > > > I am wondering how to prevent this warning message from occuring because it indicates our profiling results may be incorrect. Thank you. > > Frank, > I don't see an 'opcontrol --reset' above in your sequence of commands, so if you've run this sequence more than once, then you'll have sample data from multiple profile runs in oprofile's sample database. And very likely, some of the older sample data was from an older version of libmdMatchup.so. > > A couple tips: > - Use '--separate=lib' option as it helps match up library samples with your executable > - Start simple; set --callgraph=0 and --image=none. Once you have the basics running and you understand what you're seeing in the reports that opreport generates, then play with the various options. > > -Maynard > > > > > > > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > > > > > > > _______________________________________________ > > oprofile-list mailing list > > email@example.com > > https://lists.sourceforge.net/lists/listinfo/oprofile-list >