Topic
  • 3 replies
  • Latest Post - ‏2012-09-29T07:46:43Z by pperf
pperf
pperf
6 Posts

Pinned topic How to uncompress Linux kernel so that oprofile can recognize it?

‏2012-09-27T03:20:51Z |
 [root@test175 boot]# opcontrol --init
[root@test175 boot]# opcontrol --vmlinux=/boot/vmlinuz-2.6.32-220.el6.x86_64
[root@test175 boot]# opcontrol --start
The specified file /boot/vmlinuz-2.6.32-220.el6.x86_64does not seem to be valid
Make sure you are using the non-compressed image file (e.g. vmlinux not vmlinuz)

Updated on 2012-09-29T07:46:43Z at 2012-09-29T07:46:43Z by pperf
  • pperf
    pperf
    6 Posts

    Re: How to uncompress Linux kernel so that oprofile can recognize it?

    ‏2012-09-27T11:11:17Z  
     found the solution
    For Red Hat, need to install kernel-debuginfo rpm
    then load the uncompressed kernel at /usr/lib/debug/lib/modules/2.6.32-220.el6.ppc64/vmlinux 
  • Bill_Buros
    Bill_Buros
    160 Posts

    Re: How to uncompress Linux kernel so that oprofile can recognize it?

    ‏2012-09-27T13:15:22Z  
    • pperf
    • ‏2012-09-27T11:11:17Z
     found the solution
    For Red Hat, need to install kernel-debuginfo rpm
    then load the uncompressed kernel at /usr/lib/debug/lib/modules/2.6.32-220.el6.ppc64/vmlinux 
    Yeah, RedHat can be annoying in this respect - you have to hunt down the extra media and install the RPMs.   The SLES compressed kernel can be unzipped in place - very nice.
     
    There is code in the lpcpu package which can be used to help guide you through the steps when the oprofile profiler is specified.     This challenge with the RedHat kernel-debuginfo has actually caused us to remove oprofile from the default list of profilers..    
     
      
  • pperf
    pperf
    6 Posts

    Re: How to uncompress Linux kernel so that oprofile can recognize it?

    ‏2012-09-29T07:46:43Z  
    Yeah, RedHat can be annoying in this respect - you have to hunt down the extra media and install the RPMs.   The SLES compressed kernel can be unzipped in place - very nice.
     
    There is code in the lpcpu package which can be used to help guide you through the steps when the oprofile profiler is specified.     This challenge with the RedHat kernel-debuginfo has actually caused us to remove oprofile from the default list of profilers..    
     
      
     Thanks Bill,
     
    Once kernel-debuginfo* installed, lpcpu works perfectly.