Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4994 Discussions

The error "failed to show source and assembly code"

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