Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to run oprofile on my ubuntu host but cannot find the vmlinux file. The set up sfor oprofile needs this file:

As given here : http://oprofile.sourceforge.net/doc/overview.html#getting-started

opcontrol --vmlinux=/boot/vmlinux-`uname -r`

What should I do so that I can profile the ubuntu kernel.

I am using 2.6.32-34-generic-pae (uname -r)

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Under Ubuntu & variants, it's named vmlinuz. So your command line for oprofile becomes :

opcontrol --vmlinux=/boot/vmlinuz-`uname -r
share|improve this answer

This post may help. I copy pasted my solution here again for your convenience.

you can download source and compile your own using the following command:

apt-get source linux-image-$(uname -r)
apt-get build-dep --no-install-recommends linux-image-$(uname -r)
cd linux-2.6.32/
fakeroot make -f debian/rules binary-generic skipdbg=false  

or you can download the ddeb package here and install it by sudo dpkg -i linux-image-3.2.0-60-virtual-dbgsym_3.2.0-60.91_amd64.ddeb

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.