[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#405810: Please provide package with vmlinuX, similar to kernel-debuginfo on redhat




To use oprofile with kernel profiling enabled, we need the uncompressed version of the kernel image, vmlinux.

Use gunzip to get them (at least for architectures which simply
compresses it with gzip). Some architectures also uses uncompressed
files.
I'm using i386 and I tried many things...

(rename vmlinuz then) gunzip -f vmlinux-2.6.18-1-686.gz
gunzip: vmlinux-2.6.18-1-686.gz: not in gzip format

objcopy -j .kernel:vmlinux -O binary vmlinuz-2.6.18-1-686 vmlinux.gz
objcopy: vmlinuz-2.6.18-1-686: File format not recognized

Maybe I'm too stupid, how do you do that on i386?
I don't see such a package in the development fedora tree, please
provide more informations.
Here is an example for Fedora 5:
the content of package kernel-debuginfo-2.6.18-1.2257.fc5.x86_64.rpm
can be see here http://rpm.pbone.net/index.php3/stat/6/idpl/3685636
What should it contain? Only the uncompressed image? Or the unstripped?
The later is not possible for size constraints.
Apparently the Fedora package contain also all debug symbols.
Oops, this package is 720Mb :-(

But for oprofiler we don't need all that,
/usr/share/doc/oprofile/README.Debian.gz says:
If you wish to have make-kpkg automatically build a vmlinux image
so you can profile the kernel, edit the file /etc/kernel-pkg.conf
(or ~/.kernel-pkg.conf) and add this line:
       install_vmlinux=YES


So is there a magic command to get vmlinux out of vmlinuz
whatever the architecture is and if not, could it be possible
to create a package with the uncompressed kernel for each
binary kernel?

Phil




Reply to: