LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-19-2007, 06:48 PM   #1
oddiofile
Member
 
Registered: Sep 2003
Location: Victoria, BC
Distribution: Kubuntu
Posts: 45

Rep: Reputation: 15
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.
 
Old 04-19-2007, 07:55 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling GD Support for PHP4 apt Linux - Software 7 12-15-2005 05:12 AM
Enabling Crypto Library Support Corallis Linux - Newbie 5 07-11-2004 11:18 PM
enabling sata support for silicon image on kernel 2.6.2 fobius Linux - Software 3 02-06-2004 07:12 AM
Enabling APMD Kernel Support mackid97140 Linux - Laptop and Netbook 4 09-16-2003 12:52 PM
Enabling USB mouse support in kernel 2.4 Craigwd Linux - Software 3 12-22-2001 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration