Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.