Songtao Liu
2007-May-30 15:01 UTC
[Fedora-xen] how to get non-compressed vmlinux for Oprofile
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'' 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. How can I get the vmlinux which matches my kernel-xen? some relevant links about how to set up Oprofile: http://www.serpentine.com/blog/2006/12/17/make-linux-performance-analysis-easier-with-oprofile/ http://people.redhat.com/wcohen/FedoraCore6OProfileTutorial.txt Any hints will be greatly appreciated!!! Thanks!!!
Eduardo Habkost
2007-May-31 14:49 UTC
Re: [Fedora-xen] how to get non-compressed vmlinux for Oprofile
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