Re: Using oprofile w/o loadable module support?

Grant Edwards <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 2014-08-25, Maynard Johnson <[email protected]> wrote:
> 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 [...]

It turns out I was wrong about having oprofile support enabled in the
kernel.  A colleague had told me it was, and I glanced at .config and
saw that CONFIG_HAVE_OPROFILE was set to 'y'.  After _really_
enablling oprofile support in the kernel it appears to be working (and
opcontrol isn't trying to a modprobe).

-- 
Grant Edwards               grant.b.edwards        Yow! Is a tattoo real, like
                                  at               a curb or a battleship?
                              gmail.com            Or are we suffering in
                                                   Safeway?


------------------------------------------------------------------------------
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.