- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm currently evaluating VTune 8.0 with our project and I'm having trouble getting the SourceView to work. Callgraphs work fine but when trying to deeper analyse the code by clicking SourceView on a module in the CallGraph results window I get a "Internal Error: could not find file(s)".
I tried to explicitely set the directories for my sources with no effect.
Is there anything else I'm missing?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alexander,
Could you pleasetry the latest released VTune 8.0.2 build #608? Does the problem still occur?
Regards,
Katya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I might not be entitled to upgrade since it's an evaluation version, but I'd like to know if and how well the SourceView is working with our project prior to purchasing VTune.
Cheers,
ALex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Build #608 can also be downloaded for evaluation from https://registrationcenter.intel.com/regcenter/Download.aspx?productid=613
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can specify directories for searching source file by using menu "Window"->"Preferences", then select in the tree on the left "VTune Performance Analyzer"->"Directories", and choose Context = "Project...", Show directories for = "Source fies" - now you can add your directories with source files.
Please make sure that your binary files have full debug info (compiled with -g)- line number information, symbol information andsection ".debug_line" should contain path to source file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the help so far. Right now, I'm trying to get the supplied examples to work at least. They're compiled with full debug info (-g) and when running via gdb or idb, there is no problem stepping through each line of code.
But in VTune I still can't use the SourceView. I tried adding the full path to the binary and the source code to the VTune Directories but I still get the same error.
After using the first-time wizard, I also can't see any symbol names (Symbol available = NO). It seems like all that's really working is the callgraph analysis...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm really surprised that the VTune Source View doesn't work on provided examples. We didn't see any problems with them in our lab...Seems that the root cause is specific for your environment...
What platform you use? OS, kernel, glibc, architecture?
Did you have any warnings/errors while instalation?
Do you have any warnings while GUI start?
Let's check also whether it's a GUI issue only, or the same problem happens in command line. Please run in console:
$
$
What output you have?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Updating Call graph database...
Trying to find symbols for module (4 / 5) /opt/intel/vtune/samples/vtunedemo/vtunedemo
Failed!
However, I tried to re-run the tool with root priviledges and it worked without a problem!!
So this seems to be a problem with driver and/or directory permissions I guess.
I installed the driver with the same group ID as my user account, and I can definitely access/write the temp directory and read the binary with this user.
Any other permissions I might have forgotten...? The installer didn't mention any specific problems besides the difference in the Java Runtime I use, so I thought there was no problem on this side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) Make sure below directories are available for read/write by your group ID (permissions = 755):
<$VTUNE_INSTALL_DIR>/global_data
<$VTUNE_INSTALL_DIR>/global_data/ISM
<$VTUNE_INSTALL_DIR>/rdc/global_data
The global data directories are used by VTune to save binary symbol information.
You can re-define location ofglobal data byre-setting VTUNE_GLOBAL_DIR variable to your own directory.
2) Check that /tmp/vtune_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I now have the source view ready for our project but there aren't any sample counts for the method I'm interested in...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm really glad that the initial problem was resolved! And I beleive you're right - VTune should have warned about wrong permissions on ISM folder; i'll escalate the issue to VTune engineers.
As for the absence of sample counts on your method in Source View: did you checkdisassembly view also? Weren't there any samples in your method address range?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page