From: Maynard J. <may...@us...> - 2013-02-26 22:22:34
|
On 02/25/2013 06:33 PM, Ashwini Hasthantra wrote: > Hello, > I tried using the operf command to profile a single application on my system(linux kernel version 3.2.0.31). I got the following error: > *opreport error: No sample file found: If using opcontrol for profiling, try running 'opcontrol --dump'; otherwise, specify a session containing sample files* > > I am able to generate the report(sample data) when I tried using operf command for profiling the same application using default event. Are you using the official 0.9.8 release? If so, there was a bug that could cause the symptom you're describing. A patch was posted to the list to resolve it on Dec 10, 2012 with the subject "[PATCH] Fix operf default unit mask handling". You could either apply that patch to the 0.9.8 source tree (although, I don't know if it would apply cleanly) or (recommended) do a git clone of the current upstream code (git clone git://oprofile.git.sourceforge.net/gitroot/oprofile/oprofile). If you choose the latter option, you'll need to run ./autogen.sh before configure and make. -Maynard > Could you please help me resolve this issue? > > Will the kernel version less than 2.6.32 affects the report of operf command? Should I do system wide profiling using operf to profile the single application? > > Thank you!!! > > Regards, > Ashwini > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > > > > _______________________________________________ > oprofile-list mailing list > opr...@li... > https://lists.sourceforge.net/lists/listinfo/oprofile-list |