Re: Help in removing Oprofile

William Cohen <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 02/01/2017 12:43 PM, Shiva M wrote:
> Hi Will,
> 
> I am using Oprofile 0.9.9.  I tried with Oprofile-1.0.0 but later I found kernel CPU counters were not supported. Shall I try with Oprofile-0.9.7?. I did following to build Oprofile
> 
> Oprofile-0.9.9>./configure --enable-static  --with-kernel-support  --prefix=/home/shiva/usr
>     sudo make
>     make install
>     DESTDIR="/home/shiva/user"
> 
> 
> Thanks,
> Shiva

Hi Shiva,

opcontrol was removed from oprofile-1.0.0, so the kernel will need to be built with CONFIG_PERF_EVENTS=y in the .config file to use oprofile-1.0.0. You might check to see if the kernel perf infrastructure works with command "perf stat true".  I have used that in the past to determine whether the problem is in oprofile or in the kernel.  If it works oprofile is the problem, if that perf command is broken then need to look at the kernel.  Is the kernel built with the oprofile driver (CONFIG_OPROFILE=m?  If not opcontrol won't work.  Another thing to keep in mind is that some newer processors might not be recognized by the oprofile driver.  I would encourage you to use the oprofile perf interface with operf rather than the opcontrol interface.

When things fail it would be helpful to include the specific error messages in the dicussion to better diagnose the reason for the failure.

-Will

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.