12-16-2011 06:24 PM
I tried to use VTune to profile the hardware events in the kernel. After profiling, Bottom-up shows me all the functions and event counts. When I double clicked a kernel function to see the source code, it shows "Failed toshow source and assembly code".
I have specified search directories in Project Properties. I put both /boot and /usr/src/linux-source-2.6.38/linux-source-2.6.38 for Source files and Symbol files. I also enabled "Compile the kernel with debug info". I don't know what else I should do.
Furthermore, I want to find out where the kernel functions are called. For example, I'm profiling bus invalidate events, and VTune shows me __ticket_spin_lock causes most invalidation. It's kind of expected. So it's more interesting to see where it is called. Can VTune show me that?