[Fedora-xen] how to get non-compressed vmlinux for Oprofile

Eduardo Habkost ehabkost at redhat.com
Thu May 31 14:49:31 UTC 2007


On Wed, May 30, 2007 at 05:01:30PM +0200, Songtao Liu wrote:
> Hi,*
> 
> A question about how to get the non-compressed vmlinux, not vmlinuz, reasons as follows:
> 
> when I want to run Oprofile, I should run this command
> # opcontrol --start --vmlinux=/boot/vmlinux-'uname -r'

Use backticks (`) instead of normal quotes ('). `uname -r` is just a
way to make sure you get the right kernel version. But the
vmlinux-<your-kernel-version> file should exist, anyway.

> But firstly I should get the vmlinux, otherwise the following error will pop up:
> 
> The specified file /boot/vmlinux-uname does not seem to be valid
> Make sure you are using the non-compressed image file (e.g. vmlinux not vmlinuz)
> 
> I am running the Oprofile on fedora with kernel-xen 2.6.19-1.2911.6.5.fc6xen, as the latest kernel-xen version 2.6.20-1.2948 is very unstable. So I don't want to update my current kernel-xen.
> 
> How can I get the vmlinux??
> In fact if I run this:
> yum --enablerepo=core-debuginfo --enable=updates-debuginfo install\ kernel-debuginfo
> 
> and then
> 
> # rpm -q --list kernel-xen-debuginfo | grep vmlinux
> /usr/lib/debug/lib/modules/2.6.20-1.2948.fc6xen/vmlinux
> 
> I will get the 2.6.20-1.2948.fc6xen vmlinux, the latest one, which doesn't match my kernel-xen 2.6.19-1.2911.6.5.fc6xen.

You would need to install kernel-xen-debuginfo-2.6.19-1.2911.fc6,
that is not on the FC6 updates repository anymore, maybe you can find
it somewhere.

But you are lucky: differently from the non-xen kernel image (that
is a bzImage file), the xen vmlinuz can be easily decompressed using
'gzip' and you'll get a vmlinux file, without having to download the
kernel-xen-debuginfo package for your kernel.

# gzip -d < /boot/vmlinuz-`uname -r` > /tmp/vmlinux-`uname -r`

Then you'll have your vmlinux file under /tmp.

-- 
Eduardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-xen/attachments/20070531/470b9988/attachment.sig>


More information about the Fedora-xen mailing list