LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   enabling oprofiler support in a 2.6.16.29 kernel (https://www.linuxquestions.org/questions/linux-kernel-70/enabling-oprofiler-support-in-a-2-6-16-29-kernel-547447/)

oddiofile 04-19-2007 06:48 PM

enabling oprofiler support in a 2.6.16.29 kernel
 
Hi - I'm reading that linux has profiling support in the 2.6 kernel built-in, but whenever I try to run opcontrol, it complains that

opcontrol --vmlinux=/boot/vmlinux-`uname -r`
FATAL: Module oprofile not found.
Kernel doesn't support oprofile


In "make menuconfig" I can't find any options related to profiling that I can enable from the menu. So, I googled around, found an article on linux-mag that suggests this:
To enable OProfile in your kernel, set CONFIG_PROFILING, CONFIG_OPROFILE, and CONFIG_APIC to y and recompile. I those are the lines I added to the bottom of my .config
I found COFIG_APIC in my .config already, but not the other two. I tried adding them manually to the bottom of my .config file, but they got wiped out as soon as I did a "make".

My questions.

1. where in the menuconfig can I find options to enable oprofile support?
2. Why is it that when I add the lines directly to .config, they go away after I build?
3. Am I using the wrong version of the kernel?

Thanks for any help you can offer.

osor 04-19-2007 07:55 PM

Quote:

Originally Posted by oddiofile
1. where in the menuconfig can I find options to enable oprofile support?
2. Why is it that when I add the lines directly to .config, they go away after I build?
3. Am I using the wrong version of the kernel?

  1. From the root configuration window, it’s in “Instrumentation Support”
  2. .config is not supposed to be edited directly.
  3. I don’t think so.


All times are GMT -5. The time now is 02:45 AM.