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