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

1 Answer

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

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.