Re: Using oprofile w/o loadable module support?

Maynard Johnson <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 08/19/2014 11:07 AM, Grant Edwards wrote:
> I'm trying to get oprofile 0.9.9 running on a system where the kernel
> does not support runtime loadable kernel modules. I have oprofile
> support enabled in the kernel (2.6.33), but oprofile keeps wanting to
> "modprobe" something (I haven't been able to figure out what):
> 
>  # opcontrol --init
>  modprobe: chdir(/lib/modules): No such file or directory
>  modprobe: chdir(/lib/modules): No such file or directory
>  Kernel doesn't support oprofile
> 
> But I _do_ have oprofile support enabled in the kernel.  What module
> is oprofile looking for?
The modprobe is being done in the opcontrol shell script, which you can find in <oprof-install-dir/bin.  The opcontrol-based profiler has been deprecated for two releases and is no longer included in the 1.0.0 release (which is in release candidate phase).  You can try hacking the script so it won't do the modprobe and subsequent test for modprobe success.  Or you can start using operf instead of opcontrol.

-Maynard
> 


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
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.