Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
4823 Discussions

The error "failed to show source and assembly code"

zhengda1936
Beginner
250 Views
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
250 Views
Hope this article can help.
zhengda1936
Beginner
250 Views
Thanks. It works. I guess I didn't click Re-resolve button when I specified the Linux build directory.
Da
Reply