Comment 160 for bug 803943

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Ben: From what I can tell, Linux perf is not capable of using separate debug symbols to the running binaries like gdb can. It needs you to be running the debug binaries, so the above wiki instructions won't work for 'perf'. According to the Ubuntu convention I believe this means we need -dbg packages built for unity and compiz. The -dbgsym packages won't work with 'perf'.

All: If you did not do so already it is worth doing this before perf record:
    sudo sh -c 'echo 0 > /proc/sys/kernel/kptr_restrict'

That should be the same as running "sudo perf record ..." but without the need for "sudo".