Community
cancel
Showing results for 
Search instead for 
Did you mean: 
zhengda1936
Beginner
105 Views

The error "failed to show source and assembly code"

Hello,
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?
Thanks,
Da
0 Kudos
2 Replies
Peter_W_Intel
Employee
105 Views

Hope this article can help.
zhengda1936
Beginner
105 Views

Thanks. It works. I guess I didn't click Re-resolve button when I specified the Linux build directory.
Da
Reply